/*
Theme Name: SMYTH STUD/O 2026
Theme URI: https://smythstudio.co/
Author: SMYTH STUD/O
Description: Custom portfolio theme for SMYTH STUD/O.
Version: 1.3.1
Text Domain: smythstudio
*/

:root {
  --ink: #11100e;
  --paper: #f2f0e9;
  --white: #ffffff;
  --brick: #713c32;
  --clay: #b36d5a;
  --brown: #3b2e29;
  --gray: #8b8881;
  --line: rgba(17, 16, 14, 0.24);
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "Kanit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(18px, 2.5vw, 42px);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.2;
  text-rendering: geometricPrecision;
}

body.menu-open,
body.dialog-open { overflow: hidden; }

button,
a { color: inherit; }

a { text-decoration: none; }

button { font: inherit; }

:lang(th) {
  font-family: var(--font-accent);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--brick);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px var(--pad);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  mix-blend-mode: difference;
  transition: background .3s ease, border-color .3s ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  color: var(--paper);
  background: rgba(17, 16, 14, .96);
  border-bottom-color: rgba(255, 255, 255, .2);
  mix-blend-mode: normal;
}

.wordmark {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  width: max-content;
  font-weight: 750;
  font-size: 14px;
  line-height: .88;
  letter-spacing: -.04em;
}

.wordmark span:first-child {
  letter-spacing: .0153em;
}

.desktop-nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 28px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.desktop-nav a,
.header-meta span { position: relative; }

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-self: end;
  gap: 18px;
  font-size: 11px;
  letter-spacing: .08em;
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: 116px var(--pad) 36px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero h1 {
  margin: 3vh 0 5vh;
  font-size: clamp(78px, 11.5vw, 205px);
  font-weight: 700;
  line-height: .76;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

.hero h1 span { display: block; }

.hero h1 .accent-word {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.09em;
  text-transform: lowercase;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 430px) auto;
  align-items: end;
  gap: 28px;
}

.intro {
  max-width: 34ch;
  margin: 0;
  color: #aaa69f;
  font-size: clamp(17px, 1.5vw, 25px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.intro span[lang="th"] {
  display: block;
  max-width: 37ch;
  margin-top: 14px;
  color: #d0cbc2;
  font-family: var(--font-accent);
  font-size: .72em;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.round-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 128px;
  height: 128px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}

.round-link:hover,
.round-link:focus-visible {
  color: var(--ink);
  background: var(--clay);
  transform: rotate(-4deg);
}

.hero-media {
  height: 100svh;
  position: relative;
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(.58) contrast(1.05);
  transform: scale(1.03);
  animation: hero-enter 1.5s var(--ease) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(255, 255, 255, .22);
  pointer-events: none;
}

.hero-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--paper);
  background: rgba(17, 16, 14, .78);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-index {
  position: absolute;
  top: 84px;
  right: calc(41.667% + 10px);
  font-size: 9px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@keyframes hero-enter {
  from { opacity: .1; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.03); }
}

.ticker {
  overflow: hidden;
  color: var(--paper);
  background: var(--brick);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.4vw;
  width: max-content;
  padding: 13px 0;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  animation: ticker 28s linear infinite;
}

.ticker-track i { font-family: Georgia, serif; font-weight: 400; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.work-section {
  padding: 104px var(--pad) 64px;
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 36px;
  margin-bottom: 54px;
}

.section-head h2,
.services-intro h2 {
  margin: 18px 0 0;
  font-size: clamp(50px, 6.5vw, 112px);
  font-weight: 650;
  line-height: .78;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-width: 88px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 16px;
}

.project {
  min-width: 0;
  grid-column: span 3;
}

.project-row-1 { grid-column: span 12; }
.project-row-2 { grid-column: span 6; }
.project-row-3 { grid-column: span 4; }
.project-row-4 { grid-column: span 3; }

.project.is-hidden { display: none; }

.project-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d7d3ca;
}

.project-row-1 .project-image { aspect-ratio: 2.2 / 1; }
.project-row-2 .project-image { aspect-ratio: 4 / 3; }
.project-row-3 .project-image { aspect-ratio: 4 / 3; }
.project-row-4 .project-image { aspect-ratio: 1 / 1; }

.project-featured .project-image { min-height: min(72svh, 760px); }

.project-image img {
  transition: transform .8s var(--ease), filter .55s ease;
}

.project-open:hover .project-image img,
.project-open:focus-visible .project-image img {
  transform: scale(1.018);
  filter: saturate(.62);
}

.project-image img { object-position: center; }

.project-meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 46px);
  color: #4b241e;
  background: rgba(242, 240, 233, .68);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.project-meta b {
  max-width: 90%;
  font-size: clamp(18px, 2.1vw, 34px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  letter-spacing: -.015em;
}

.project-meta em,
.project-meta i {
  display: none;
}

.project-open:hover .project-meta,
.project-open:focus-visible .project-meta { opacity: 1; }

.project-open:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 5px;
}

.statement {
  min-height: 100svh;
  padding: 104px var(--pad) 38px;
  color: var(--paper);
  background: var(--brown);
}

.statement h2 {
  max-width: 15ch;
  margin: 7vh 0 12vh;
  font-size: clamp(70px, 10.5vw, 176px);
  font-weight: 650;
  line-height: .78;
  letter-spacing: -.078em;
  text-transform: uppercase;
}

.statement h2 span {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
}

.statement-foot {
  display: grid;
  grid-template-columns: minmax(220px, 480px) 1fr;
  align-items: end;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  padding-top: 18px;
}

.statement-foot p {
  margin: 0;
  color: #d4cbc4;
  font-size: clamp(18px, 1.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.statement-mark {
  justify-self: end;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: .7;
}

.services {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(520px, 7fr);
  gap: 5vw;
  padding: 120px var(--pad);
  background: #dedbd3;
}

.services-intro { align-self: start; }

.service-list { border-top: 1px solid var(--ink); }

.service-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) minmax(220px, 1fr) 22px;
  gap: 20px;
  align-items: start;
  padding: 22px 0 60px;
  border-bottom: 1px solid var(--ink);
  transition: color .3s var(--ease), background .3s var(--ease), padding .3s var(--ease);
}

.service-row:hover,
.service-row:focus-visible {
  padding-right: 18px;
  padding-left: 18px;
  color: var(--paper);
  background: var(--ink);
  outline: 0;
}

.service-row:hover p,
.service-row:focus-visible p,
.service-row:hover p span[lang="th"],
.service-row:focus-visible p span[lang="th"],
.service-row:hover > span,
.service-row:focus-visible > span {
  color: #c9c4bb;
}

.service-row:hover > i,
.service-row:focus-visible > i {
  color: var(--clay);
  transform: translate(4px, -4px);
}

.service-row > span,
.service-row > i {
  color: #5f5b55;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.service-row h3 {
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(26px, 2.8vw, 50px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
}

.service-row p {
  max-width: 32ch;
  margin: 0;
  color: #57544e;
  font-size: 14px;
  line-height: 1.35;
}

.service-row p span[lang="th"] {
  display: block;
  margin-top: 10px;
  color: #393631;
  font-family: var(--font-accent);
  font-weight: 400;
  line-height: 1.55;
}

.service-row > i {
  justify-self: end;
  color: var(--brick);
  font-size: 18px;
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.contact {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 28px;
  align-items: end;
  min-height: 78svh;
  padding: 90px var(--pad) 36px;
  color: var(--paper);
  background: var(--brick);
}

.contact-label {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-label span {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact h2 {
  margin: 0;
  font-size: clamp(82px, 12vw, 210px);
  font-weight: 650;
  line-height: .72;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

.contact-links {
  display: grid;
  gap: 12px;
}
.contact > a,
.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: .02em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  padding: 46px var(--pad) 24px;
  color: var(--paper);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: #8f8b84;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer p:last-child { text-align: right; }

.footer-mark { font-size: clamp(26px, 3vw, 48px); }

.project-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
}

.project-dialog::backdrop { background: var(--ink); }

.dialog-shell { min-height: 100%; }

.dialog-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 12px var(--pad);
  color: var(--paper);
  background: rgba(17, 16, 14, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.dialog-header > p {
  margin: 0;
  color: #aaa69f;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.dialog-close {
  justify-self: end;
  padding: 8px 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dialog-close:hover,
.dialog-close:focus-visible { color: var(--clay); }

.case-study { background: var(--paper); }

.case-hero {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
  min-height: calc(100svh - 68px);
  color: var(--paper);
  background: var(--ink);
}

.case-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 120px var(--pad) 38px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.case-heading h2 {
  margin: 24px 0 18px;
  font-size: clamp(62px, 7.6vw, 132px);
  font-weight: 650;
  line-height: .8;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
}

.case-location {
  margin: 0;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.7vw, 28px);
  font-style: italic;
}

.dialog-media {
  position: relative;
  min-width: 0;
  min-height: calc(100svh - 68px);
  margin: 0;
  overflow: hidden;
}

.dialog-media img {
  object-position: center;
  filter: saturate(.72) contrast(1.02);
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 7vw;
  padding: clamp(70px, 9vw, 150px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.case-facts { border-top: 1px solid var(--ink); }

.case-facts > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
}

.case-facts span {
  color: #68645d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.case-facts strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.case-intro { max-width: 820px; }

.case-lead {
  margin: 42px 0 28px;
  font-family: var(--font-accent);
  font-size: clamp(30px, 4.1vw, 66px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.case-intro > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: #67635d;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.45;
  letter-spacing: -.015em;
}

.case-story {
  padding: clamp(74px, 9vw, 145px) var(--pad);
  color: var(--paper);
  background: var(--brown);
}

.case-story > h3 {
  max-width: 17ch;
  margin: 44px 0 clamp(70px, 10vw, 160px);
  font-family: var(--font-accent);
  font-size: clamp(38px, 6vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .34);
}

.case-story-grid > div {
  min-height: 260px;
  padding: 18px 28px 28px 0;
  border-right: 1px solid rgba(255, 255, 255, .34);
}

.case-story-grid > div + div { padding-left: 28px; }
.case-story-grid > div:last-child { border-right: 0; }

.case-story-grid span {
  color: var(--clay);
  font-size: 10px;
  letter-spacing: .08em;
}

.case-story-grid h4 {
  margin: 48px 0 18px;
  font-family: var(--font-accent);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1;
}

.case-story-grid p {
  max-width: 30ch;
  margin: 0;
  color: #d2c9c1;
  font-family: var(--font-accent);
  font-size: 14px;
  line-height: 1.55;
}

.case-footer {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto;
  align-items: end;
  gap: 40px;
  min-height: 45svh;
  padding: 70px var(--pad) 34px;
  color: var(--paper);
  background: var(--brick);
}

.case-footer p {
  max-width: 58ch;
  margin: 0;
  color: #e0d8d0;
  font-family: var(--font-accent);
  font-size: clamp(19px, 2.1vw, 32px);
  line-height: 1.45;
}

.case-back {
  padding: 14px 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .desktop-nav,
  .header-meta { display: none; }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    padding: 8px 0;
    color: inherit;
    border: 0;
    background: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .menu-icon {
    position: relative;
    width: 22px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }

  .mobile-menu {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 90px var(--pad) 28px;
    color: var(--paper);
    background: var(--brick);
  }

  .mobile-menu[hidden] { display: none; }

  .mobile-menu a {
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.45);
    font-size: clamp(44px, 11vw, 76px);
    font-weight: 650;
    line-height: .92;
    letter-spacing: -.06em;
    text-transform: uppercase;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: 82svh;
    padding-top: 96px;
  }

  .hero h1 { font-size: clamp(72px, 18vw, 150px); }

  .hero-media {
    min-height: 76svh;
    height: 76svh;
  }

  .hero-media img { object-position: center 40%; }

  .hero-index { display: none; }

  .section-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 14px;
  }

  .project-row-1,
  .project-row-2,
  .project-row-3,
  .project-row-4 { grid-column: span 1; }

  .project-featured { grid-column: 1 / -1; }
  .project-featured .project-image { min-height: 0; aspect-ratio: 16 / 9; }

  .project:not(.project-featured) .project-image { aspect-ratio: 4 / 5; }

  .services {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .service-row {
    grid-template-columns: 34px 1fr 20px;
  }

  .service-row p {
    grid-column: 2 / 3;
    margin-top: 16px;
  }

  .service-row > i { grid-column: 3; grid-row: 1; }

  .contact {
    grid-template-columns: 1fr;
    align-content: space-between;
  }

  .contact-label {
    flex-direction: row;
    align-self: auto;
  }

  .dialog-header { grid-template-columns: 1fr auto; }
  .dialog-header > p { display: none; }

  .case-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .case-heading {
    min-height: 62svh;
    padding-top: 100px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .dialog-media {
    min-height: 74svh;
    height: 74svh;
  }

  .case-overview { grid-template-columns: 1fr; }
  .case-story-grid { grid-template-columns: 1fr; }

  .case-story-grid > div,
  .case-story-grid > div + div {
    min-height: 0;
    padding: 18px 0 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .34);
  }

  .case-story-grid > div:last-child { border-bottom: 0; }
  .case-story-grid h4 { margin-top: 34px; }
}

@media (max-width: 620px) {
  .hero-copy { min-height: 76svh; }

  .hero h1 {
    margin: 2vh 0 5vh;
    font-size: 19vw;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .round-link {
    width: 92px;
    height: 92px;
    padding: 13px;
    font-size: 9px;
  }

  .hero-media {
    min-height: 64svh;
    height: 64svh;
  }

  .work-section { padding-top: 88px; }

  .section-head h2,
  .services-intro h2 { font-size: 15vw; line-height: .84; }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-row-1,
  .project-row-2,
  .project-row-3,
  .project-row-4,
  .project-featured { grid-column: auto; }

  .project-featured .project-image,
  .project:not(.project-featured) .project-image { aspect-ratio: 4 / 5; }

  .project-meta {
    position: static;
    display: block;
    padding: 11px 0 0;
    color: var(--ink);
    background: transparent;
    opacity: 1;
  }

  .project-meta b {
    max-width: none;
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    letter-spacing: -.02em;
  }

  .statement { min-height: auto; padding-top: 90px; }
  .statement h2 { margin: 9vh 0 16vh; font-size: 17vw; }

  .statement-foot {
    grid-template-columns: 1fr auto;
  }

  .services { padding-top: 90px; }

  .service-row {
    padding-bottom: 42px;
  }

  .contact { min-height: 72svh; }
  .contact h2 { font-size: 20vw; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) { display: none; }

  .case-heading { min-height: 54svh; }
  .case-heading h2 { font-size: 17vw; }

  .dialog-media {
    min-height: 62svh;
    height: 62svh;
  }

  .case-overview { padding-top: 70px; padding-bottom: 78px; }
  .case-lead { margin-top: 30px; }
  .case-story > h3 { font-size: 11vw; }

  .case-footer {
    grid-template-columns: 1fr;
    min-height: 56svh;
  }

  .case-back { justify-self: stretch; text-align: left; }
}

@media (hover: none) {
  .project-meta {
    position: static;
    display: block;
    padding: 11px 0 0;
    color: var(--ink);
    background: transparent;
    opacity: 1;
  }

  .project-meta b {
    max-width: none;
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    letter-spacing: -.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* SMYTH mosaic layout v1 */
.work-section { container-type:inline-size; }
.project-grid { gap:18px; }
.project-grid > .project { min-width:0; }
.project-grid > .project.reveal { transform:none; transition:opacity .65s ease; }
.project .project-meta { position:static; inset:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; align-content:start; align-items:baseline; padding:12px 0 0; color:var(--ink); background:transparent; opacity:1; pointer-events:none; }
.project-grid .project .project-meta b { min-width:0; max-width:none; font-size:clamp(14px,1.15vw,21px); font-weight:550; line-height:1.08; text-align:left; letter-spacing:-.025em; }
.project .project-meta em,.project .project-meta i { display:block; font-size:9px; font-style:normal; font-weight:500; line-height:1.25; text-transform:uppercase; letter-spacing:.07em; color:var(--gray); }
.project .project-meta em { grid-column:1; }
.project .project-meta i { grid-column:2; grid-row:1 / span 2; align-self:end; }
.project-open:hover .project-meta b,.project-open:focus-visible .project-meta b { color:var(--brick); }
@media (min-width:1024px) {
.project-grid:not(:has(> .is-hidden)) { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-auto-rows:calc(9cqw - 15.5px); align-items:stretch; gap:18px; }
.project-grid:not(:has(> .is-hidden)) > .project { grid-column:var(--mx) / span var(--mw) !important; grid-row:var(--my) / span var(--mh) !important; height:100%; margin:0; padding:0; }
.project-grid:not(:has(> .is-hidden)) .project-open { display:grid; grid-template-rows:minmax(0,1fr) var(--caption,64px); height:100%; }
.project-grid:not(:has(> .is-hidden)) .project-image { width:100%; height:100% !important; min-height:0 !important; aspect-ratio:auto !important; }
.project-grid:not(:has(> .is-hidden)) .project-image img { width:100%; height:100%; object-fit:cover; }
.project-grid:not(:has(> .is-hidden)) .project-meta { height:var(--caption,64px); }
.project-grid > .project:nth-child(1) { --mx:1; --my:1; --mw:5; --mh:6; --caption:100px; }
.project-grid > .project:nth-child(2) { --mx:1; --my:7; --mw:3; --mh:4; }
.project-grid > .project:nth-child(3) { --mx:4; --my:7; --mw:2; --mh:7; }
.project-grid > .project:nth-child(4) { --mx:1; --my:11; --mw:1; --mh:4; }
.project-grid > .project:nth-child(5) { --mx:2; --my:11; --mw:2; --mh:3; }
.project-grid > .project:nth-child(6) { --mx:2; --my:14; --mw:1; --mh:4; }
.project-grid > .project:nth-child(7) { --mx:3; --my:14; --mw:3; --mh:4; }
.project-grid > .project:nth-child(8) { --mx:1; --my:15; --mw:1; --mh:3; }
.project-grid > .project:nth-child(9) { --mx:1; --my:18; --mw:5; --mh:7; --caption:84px; }
.project-grid > .project:nth-child(10) { --mx:3; --my:25; --mw:3; --mh:4; }
.project-grid > .project:nth-child(11) { --mx:1; --my:25; --mw:2; --mh:7; }
.project-grid > .project:nth-child(12) { --mx:5; --my:29; --mw:1; --mh:4; }
.project-grid > .project:nth-child(13) { --mx:3; --my:29; --mw:2; --mh:3; }
.project-grid > .project:nth-child(14) { --mx:5; --my:33; --mw:1; --mh:3; --caption:80px; }
.project-grid > .project:nth-child(15) { --mx:4; --my:32; --mw:1; --mh:4; }
.project-grid > .project:nth-child(16) { --mx:1; --my:32; --mw:3; --mh:4; }
.project-grid > .project:nth-child(17) { --mx:1; --my:36; --mw:3; --mh:3; }
.project-grid > .project:nth-child(18) { --mx:4; --my:36; --mw:2; --mh:4; }
.project-grid > .project:nth-child(19) { --mx:1; --my:39; --mw:3; --mh:9; }
.project-grid > .project:nth-child(20) { --mx:4; --my:40; --mw:2; --mh:8; }
.project-grid > .project:nth-child(8),.project-grid > .project:nth-child(12),.project-grid > .project:nth-child(18) { --caption:80px; }
}
.project-grid:has(> .is-hidden) { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:auto; gap:24px 18px; }
.project-grid:has(> .is-hidden) > .project { grid-column:auto !important; grid-row:auto !important; }
.project-grid:has(> .is-hidden) .project-image { height:auto !important; min-height:0 !important; aspect-ratio:4 / 5 !important; }
@media (max-width:1023px) {
.project-grid,.project-grid:has(> .is-hidden) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px; }
.project-grid > .project { grid-column:auto !important; grid-row:auto !important; }
.project-grid .project-image { height:auto !important; min-height:0 !important; aspect-ratio:4 / 5 !important; }
.project-grid > .project-featured { grid-column:1 / -1 !important; }
.project-grid > .project-featured .project-image { aspect-ratio:16 / 9 !important; }
.project-grid:not(:has(> .is-hidden)) > .project:nth-child(9) { grid-column:1 / -1 !important; }
.project-grid:not(:has(> .is-hidden)) > .project:nth-child(9) .project-image { aspect-ratio:16 / 9 !important; }
}
@media (max-width:620px) {
.project-grid,.project-grid:has(> .is-hidden) { grid-template-columns:1fr; gap:28px; }
.project-grid > .project { grid-column:1 / -1 !important; }
.project-grid .project .project-meta b { font-size:20px; }
.contact { grid-template-columns:minmax(0,1fr); }
.contact h2 { font-size:14vw; }
}
/* About and Contact pages */
.studio-interior-main { min-height: 100svh; }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--clay); }
.studio-kicker { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.studio-intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding: 130px var(--pad) 55px; color: var(--ink); background: var(--paper); }
.studio-intro h1 { margin: 9vh 0 7vh; font-size: clamp(82px, 10.2vw, 190px); font-weight: 700; line-height: .78; letter-spacing: -.085em; text-transform: uppercase; }
.studio-intro h1 em { color: var(--clay); font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; line-height: .85; letter-spacing: -.09em; text-transform: lowercase; }
.studio-intro-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8vw; max-width: 1380px; }
.studio-intro-bottom p { max-width: 38ch; margin: 0; font-size: clamp(19px, 1.7vw, 29px); line-height: 1.18; letter-spacing: -.035em; }
.studio-intro-bottom p[lang="th"] { max-width: 52ch; font-size: clamp(16px, 1.15vw, 21px); line-height: 1.55; letter-spacing: 0; }
.studio-image { position: relative; height: 82svh; margin: 0; overflow: hidden; background: var(--brown); }
.studio-image img { object-position: center 50%; filter: saturate(.72); }
.studio-image figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 20px; padding: 14px var(--pad); color: var(--paper); background: rgba(17,16,14,.7); font-size: 10px; letter-spacing: .08em; }
.studio-belief { padding: 125px var(--pad) 75px; color: var(--paper); background: var(--brown); }
.studio-belief h2 { max-width: 16ch; margin: 11vh 0 13vh; font-size: clamp(70px, 9vw, 160px); font-weight: 650; line-height: .8; letter-spacing: -.075em; text-transform: uppercase; }
.studio-belief-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; max-width: 1120px; margin-left: auto; }
.studio-belief-copy p { max-width: 32ch; margin: 0; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.18; letter-spacing: -.03em; }
.studio-belief-copy p[lang="th"] { max-width: 50ch; font-size: clamp(16px, 1.15vw, 21px); line-height: 1.55; letter-spacing: 0; }
.studio-text-link { display: flex; justify-content: space-between; max-width: 1120px; margin: 12vh 0 0 auto; padding: 18px 0; border-top: 1px solid rgba(242,240,233,.45); border-bottom: 1px solid rgba(242,240,233,.45); font-size: clamp(16px, 1.4vw, 25px); letter-spacing: -.02em; }
.studio-text-link:hover, .studio-text-link:focus-visible { color: var(--clay); }
.studio-next { display: flex; flex-direction: column; justify-content: space-between; min-height: 72svh; padding: 105px var(--pad) 55px; color: var(--ink); background: var(--paper); }
.studio-next h2 { margin: 8vh 0; font-size: clamp(62px, 7.5vw, 140px); font-weight: 650; line-height: .81; letter-spacing: -.075em; text-transform: uppercase; }
.studio-next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.studio-next-links a { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--ink); font-size: 13px; letter-spacing: .06em; }
.studio-next-links a:hover, .studio-next-links a:focus-visible { color: var(--brick); }
.studio-contact-hero { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding: 130px var(--pad) 55px; color: var(--paper); background: var(--brick); }
.studio-contact-hero h1 { margin: 8vh 0; font-size: clamp(110px, 14vw, 260px); font-weight: 700; line-height: .74; letter-spacing: -.085em; text-transform: uppercase; }
.studio-contact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; max-width: 1100px; margin-left: auto; }
.studio-contact-intro p { max-width: 35ch; margin: 0; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.studio-contact-intro p[lang="th"] { max-width: 50ch; font-size: clamp(16px, 1.15vw, 21px); line-height: 1.55; letter-spacing: 0; }
.studio-contact-details { padding: 100px var(--pad) 130px; color: var(--ink); background: var(--paper); }
.studio-detail-row { display: grid; grid-template-columns: minmax(180px, 24%) minmax(0, 1fr); align-items: start; gap: 30px; min-height: 190px; padding: 28px 0 48px; border-top: 1px solid var(--line); }
.studio-detail-row:last-child { border-bottom: 1px solid var(--line); }
.studio-detail-row > a { display: flex; justify-content: space-between; gap: 20px; overflow-wrap: anywhere; font-size: clamp(32px, 5vw, 88px); line-height: .95; letter-spacing: -.06em; }
.studio-detail-row > a:hover, .studio-detail-row > a:focus-visible { color: var(--brick); }
.studio-detail-row > p { margin: 0; font-size: clamp(34px, 5vw, 86px); line-height: .95; letter-spacing: -.06em; }
.studio-detail-links { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.studio-detail-links a { display: flex; gap: 18px; padding: 8px 0; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.03em; }
.studio-detail-links a:hover, .studio-detail-links a:focus-visible { color: var(--brick); }
@media (max-width: 900px) {
  .studio-intro, .studio-contact-hero { padding-top: 104px; }
  .studio-intro h1 { font-size: clamp(66px, 12vw, 122px); }
  .studio-intro-bottom, .studio-belief-copy, .studio-contact-intro { grid-template-columns: 1fr; gap: 18px; margin-left: 0; }
  .studio-belief h2 { font-size: clamp(55px, 10vw, 90px); }
  .studio-contact-hero h1 { font-size: clamp(90px, 14vw, 142px); }
  .studio-detail-row { grid-template-columns: minmax(130px, 25%) 1fr; }
}
@media (max-width: 620px) {
  .studio-kicker .eyebrow { font-size: 9px; }
  .studio-intro { min-height: 88svh; padding-top: 98px; padding-bottom: 36px; }
  .studio-intro h1 { margin: 12vh 0 10vh; font-size: clamp(55px, 14.5vw, 88px); line-height: .82; }
  .studio-intro-bottom p { font-size: 18px; }
  .studio-intro-bottom p[lang="th"] { font-size: 15px; }
  .studio-image { height: 54svh; }
  .studio-belief { padding: 95px var(--pad) 70px; }
  .studio-belief h2 { margin: 12vh 0 11vh; font-size: clamp(37px, 10vw, 64px); line-height: .84; }
  .studio-belief-copy p { font-size: 20px; }
  .studio-belief-copy p[lang="th"] { font-size: 15px; }
  .studio-text-link { margin-top: 10vh; font-size: 16px; }
  .studio-next { min-height: 64svh; padding: 90px var(--pad) 42px; }
  .studio-next h2 { font-size: 8vw; line-height: .88; }
  .studio-next-links { grid-template-columns: 1fr; gap: 8px; }
  .studio-contact-hero { min-height: 86svh; padding-top: 100px; padding-bottom: 42px; }
  .studio-contact-hero h1 { margin: 10vh 0; font-size: 14vw; line-height: .78; }
  .studio-contact-intro p { font-size: 18px; }
  .studio-contact-intro p[lang="th"] { font-size: 15px; }
  .studio-contact-details { padding: 75px var(--pad) 95px; }
  .studio-detail-row { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 22px 0 50px; }
  .studio-detail-row > a, .studio-detail-row > p { font-size: clamp(25px, 6vw, 38px); }
  .studio-detail-links { display: grid; gap: 8px; }
  .studio-detail-links a { font-size: 17px; }
  .site-footer .footer-links { justify-content: flex-end; }
  .site-footer p:last-child { grid-column: 1 / -1; text-align: right; }
}
