@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600&family=Italiana&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #20232e;
  --cream: #f3efe6;
  --paper: #faf8f2;
  --purple: #4e3192;
  --gold: #c5a35d;
  color: #1f2430;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  min-width: 320px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6px;
  width: 1.15rem;
}

ol, ul, menu {
  list-style: none;
}

/* ===== HEADER ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 4.5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
}

.brand small {
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 13px;
}

.nav-links > a:not(.nav-contact) {
  opacity: 0.85;
  position: relative;
}

.nav-links > a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.2s;
}

.nav-links > a:hover::after {
  width: 100%;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 11px 15px 11px 22px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-contact:hover {
  background: #fff;
  color: var(--ink);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: -14px;
}

.language-switch button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.language-switch button:hover {
  color: #fff;
}

.language-switch button.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
}

.language-switch span {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.34);
}

.menu-button {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  background: #17201c;
  color: #fff;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  animation: heroReveal 1.3s both;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,14,14,0.68) 0%, rgba(9,14,14,0.18) 67%),
    linear-gradient(transparent 52%, rgba(9,14,14,0.53) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 150px 9vw 80px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 20px;
}

.eyebrow.light {
  color: #f1dca8;
}

.hero h1,
.section h2,
.manifesto blockquote {
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(54px, 7.3vw, 112px);
  line-height: 1.05;
  max-width: 940px;
}

em {
  font-family: 'Italiana', 'IBM Plex Sans Thai', serif;
  font-weight: 400;
  font-style: normal;
}

.hero h1 em {
  color: #e9d5a8;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 910px;
  margin-top: 54px;
}

.hero-bottom > p {
  color: rgba(255,255,255,0.76);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

.round-link {
  display: grid;
  place-content: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.25s;
  position: relative;
}

.round-link svg {
  margin: 0 auto 7px;
}

.round-link span {
  font-size: 11px;
}

.round-link:hover {
  background: #fff;
  color: var(--ink);
  transform: rotate(5deg);
}

.scroll-note {
  position: absolute;
  bottom: 52px;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 8px;
  letter-spacing: 0.18em;
  transform: rotate(90deg) translate(100%);
  transform-origin: 100% 100%;
}

.scroll-note span {
  width: 54px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 130px max(5vw, 24px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6f6e69;
  align-self: start;
}

.section-label span {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #bbb6a9;
  border-radius: 50%;
  font-size: 9px;
}

.section-label p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== ABOUT ===== */
.about {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) 1.5fr minmax(280px, 0.85fr);
  gap: 6vw;
}

.about h2,
.projects h2,
.contact h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.12;
}

.about h2 em,
.projects h2 em,
.contact h2 em {
  color: var(--purple);
}

.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  max-width: 740px;
  margin-top: 60px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.95;
  color: #6d6b66;
}

.about-detail p {
  margin: 0;
}

.about-image-wrap {
  position: relative;
  align-self: end;
  padding-top: 80px;
}

.about-image-wrap img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 25%;
}

.experience-badge {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 132px;
  height: 132px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  place-content: center;
  text-align: center;
}

.experience-badge strong {
  font-family: 'Italiana', serif;
  font-size: 30px;
  font-weight: 400;
}

.experience-badge span {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ===== SERVICES ===== */
.services {
  background: var(--ink);
  color: #fff;
}

.services-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.68fr) 2fr;
  margin-bottom: 70px;
}

.services h2 {
  font-size: clamp(50px, 6.4vw, 90px);
  line-height: 1.04;
}

.services h2 em {
  color: #dbc28b;
}

.light-label {
  color: rgba(255,255,255,0.52);
}

.light-label span {
  border-color: rgba(255,255,255,0.28);
}

.service-item {
  display: grid;
  grid-template-columns: 0.2fr 1fr 1.15fr 40px;
  align-items: center;
  gap: 30px;
  padding: 31px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  transition: padding 0.22s;
}

.service-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.service-item:hover {
  padding-left: 14px;
}

.service-number {
  font-family: 'Italiana', serif;
  font-size: 15px;
  color: #cdbb91;
}

.service-item h3 {
  margin: 0;
  font-family: 'Italiana', serif;
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 400;
}

.service-thai {
  color: rgba(255,255,255,0.50);
  font-size: 12px;
  margin: 5px 0 0;
}

.service-description {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
  margin: 0;
}

.service-arrow {
  display: grid;
  place-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.19);
  border-radius: 50%;
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--cream);
}

.projects-title {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr 0.75fr;
  align-items: end;
  gap: 6vw;
  margin-bottom: 70px;
}

.projects-intro {
  color: #74716b;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  max-width: 340px;
  margin: 0 0 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  background: #ddd;
  min-height: 520px;
  overflow: hidden;
}

.project-card.project-wide {
  grid-column: span 2;
  min-height: 620px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  align-items: end;
  gap: 15px;
  padding: 70px 30px 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(9,11,14,0.72));
}

.project-overlay > span,
.project-overlay p {
  color: rgba(255,255,255,0.67);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-overlay h3 {
  margin: 0;
  font-family: 'Italiana', 'IBM Plex Sans Thai', serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
}

.project-overlay p {
  margin: 4px 0 0;
}

/* ===== MANIFESTO ===== */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  background: var(--purple);
  color: #fff;
}

.manifesto-image {
  min-height: 520px;
}

.manifesto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
}

.manifesto-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vw;
}

.manifesto blockquote {
  font-size: clamp(42px, 5.1vw, 76px);
  line-height: 1.16;
}

.manifesto blockquote em {
  color: #ecd8aa;
}

.manifesto-copy > p:last-child {
  color: rgba(255,255,255,0.67);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  max-width: 470px;
  margin: 42px 0 0;
}

/* ===== OFFICE ===== */
.office {
  background: var(--cream);
  overflow: hidden;
}

.office-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr 0.75fr;
  align-items: end;
  gap: 6vw;
  margin-bottom: 70px;
}

.office h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.12;
}

.office h2 em {
  color: var(--purple);
}

.office-intro {
  color: #74716b;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  max-width: 350px;
  margin: 0 0 8px;
}

.office-gallery {
  display: grid;
  grid-template-rows: repeat(2, minmax(260px, 34vh)) 190px;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.office-photo {
  position: relative;
  background: #d9d6ce;
  overflow: hidden;
  margin: 0;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.office-photo:hover img {
  transform: scale(1.035);
}

.office-main {
  grid-area: 1 / 1 / 3 / 9;
}

.office-main img {
  object-position: center 40%;
}

.office-sign {
  grid-area: 1 / 9 / auto / 13;
}

.office-sign img {
  object-position: 55% center;
}

.office-front {
  grid-area: 2 / 9 / auto / 13;
}

.office-side {
  grid-area: 3 / 3 / auto / 11;
  border: 14px solid var(--cream);
  border-bottom: 0;
  z-index: 2;
  transform: translateY(-42px);
}

.office-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 70px 24px 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(10,12,15,0.68));
}

.office-photo figcaption span {
  font-family: 'Italiana', 'IBM Plex Sans Thai', serif;
  font-size: 23px;
}

.office-photo figcaption small {
  color: rgba(255,255,255,0.72);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--paper);
  text-align: center;
}

.contact h2 {
  margin: 0 auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 42px;
  width: min(900px, 100%);
  margin: 65px auto 100px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  color: #57544f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 0 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c9c2b6;
  border-radius: 0;
  outline: 0;
  transition: border-color 0.18s;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a09b92;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
}

.form-message,
.form-submit {
  grid-column: 1 / 3;
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 5px;
}

.form-submit > p {
  color: #8b867d;
  font-size: 10px;
  line-height: 1.6;
  max-width: 390px;
  margin: 0;
}

.form-submit button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 260px;
  padding: 15px 17px 15px 24px;
  border: 1px solid var(--purple);
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.form-submit button:hover {
  background: transparent;
  color: var(--purple);
}

.form-submit button svg {
  width: 20px;
}

.form-status {
  animation: fadeInStatus 0.3s ease;
  transition: all 0.3s ease;
}

.form-status.success {
  background: #eef8f1;
  color: #1e6b37;
  border: 1px solid #c2e7cc;
}

.form-status.error {
  background: #fdf2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-status.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 950px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid #d8d3c9;
  text-align: left;
}

.contact-details > div {
  border-right: 1px solid #d8d3c9;
  min-height: 100px;
  padding: 0 34px;
}

.contact-details > div:first-child {
  padding-left: 0;
}

.contact-details > div:last-child {
  border-right: 0;
}

.contact-details p,
.contact-details a {
  color: #686660;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  display: block;
}

.contact-details .contact-email {
  color: var(--purple);
  margin-bottom: 5px;
}

.contact-details .detail-label {
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

/* ===== FOOTER ===== */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 42px 5vw;
  background: #171923;
  color: rgba(255,255,255,0.65);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 42px;
}

.footer-brand strong {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
}

.footer-brand p,
footer > p {
  font-size: 8px;
  letter-spacing: 0.08em;
  margin: 3px 0 0;
}

footer > a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-self: end;
}

footer > a span {
  color: #d6bd84;
  margin-left: 8px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .menu-button {
    display: block;
    z-index: 2;
    padding: 10px;
  }

  .menu-button svg {
    width: 25px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(31, 35, 47, 0.98);
    color: #fff;
    font-size: 22px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.22s;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
  }

  .nav-contact {
    margin-top: 12px;
    font-size: 14px;
  }

  .language-switch {
    gap: 12px;
    margin: 10px 0 0;
  }

  .language-switch button {
    font-size: 13px;
  }

  .about {
    grid-template-columns: 130px 1fr;
  }

  .about-image-wrap {
    grid-column: 2;
    max-width: 560px;
    padding-top: 20px;
  }

  .projects-title {
    grid-template-columns: 130px 1fr;
  }

  .projects-intro,
  .office-intro {
    grid-column: 2;
  }

  .office-heading {
    grid-template-columns: 130px 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 18px 20px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 13px;
  }

  .hero-content {
    justify-content: flex-end;
    padding: 130px 24px 70px;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 66px);
  }

  .hero-bottom {
    align-items: center;
    margin-top: 40px;
  }

  .hero-bottom > p {
    max-width: 58%;
    font-size: 12px;
  }

  .desktop-break,
  .scroll-note {
    display: none;
  }

  .round-link {
    width: 88px;
    height: 88px;
  }

  .section {
    padding: 90px 24px;
  }

  .about,
  .services-heading,
  .projects-title,
  .office-heading {
    display: block;
  }

  .section-label {
    margin-bottom: 45px;
  }

  .about-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 38px;
  }

  .about-image-wrap {
    margin-top: 45px;
    padding-top: 0;
  }

  .about-image-wrap img {
    min-height: 320px;
  }

  .experience-badge {
    width: 110px;
    height: 110px;
    bottom: -45px;
    right: -5px;
  }

  .services-heading {
    margin-bottom: 45px;
  }

  .service-item {
    grid-template-columns: 32px 1fr 30px;
    gap: 12px;
    padding: 24px 0;
  }

  .service-description {
    grid-column: 2 / 4;
    padding-right: 10px;
  }

  .projects-intro,
  .office-intro {
    margin-top: 25px;
  }

  .project-grid {
    display: block;
  }

  .project-card,
  .project-card.project-wide {
    min-height: 430px;
    margin-bottom: 16px;
  }

  .project-card.project-wide:first-child {
    min-height: 350px;
  }

  .project-overlay {
    padding: 70px 20px 22px;
  }

  .manifesto {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .manifesto-image {
    min-height: 420px;
  }

  .manifesto-copy {
    padding: 80px 24px;
  }

  .office-heading {
    margin-bottom: 45px;
  }

  .office-gallery {
    display: grid;
    grid-template-rows: 390px 190px 240px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .office-main {
    grid-area: 1 / 1 / auto / 3;
  }

  .office-sign {
    grid-area: 2 / 1;
  }

  .office-front {
    grid-area: 2 / 2;
  }

  .office-side {
    border: 0;
    grid-area: 3 / 1 / auto / 3;
    transform: none;
  }

  .office-photo figcaption {
    padding: 60px 17px 17px;
  }

  .office-photo figcaption span {
    font-size: 19px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 50px auto 70px;
  }

  .form-message,
  .form-submit {
    grid-column: 1;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .form-submit button {
    width: 100%;
    min-width: 0;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-details > div,
  .contact-details > div:first-child {
    border-right: 0;
    border-bottom: 1px solid #d8d3c9;
    min-height: 0;
    padding: 20px 0;
  }

  .contact-details > div:last-child {
    border-bottom: 0;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 35px 15px;
  }

  footer > p {
    grid-row: 2;
  }

  footer > a {
    grid-area: 1 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero > img {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
