:root {
  --ink: #111714;
  --paper: #f3efe6;
  --surface: #fffdf8;
  --accent: #1f765e;
  --accent-soft: #bdd8cb;
  --signal: #ef7f67;
  --muted: #626861;
  --line: #c9c8c0;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --phone-minimum: 300px;
  --phone-aspect: 9 / 19.5;
  --shell: 1220px;
  --radius: 20px;
  --shadow: 0 26px 70px rgb(17 23 20 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body, button, a { -webkit-font-smoothing: antialiased; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

button, summary { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .15s ease;
}

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

.section-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.scroll-marker { display: block; height: 1px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid transparent;
  background: rgb(243 239 230 / 94%);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header[data-scrolled] {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgb(17 23 20 / 5%);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
}

.site-navigation { display: flex; justify-content: center; gap: clamp(1.25rem, 3vw, 2.75rem); }

.site-navigation a {
  position: relative;
  padding: .6rem 0;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-navigation a::after {
  content: "";
  position: absolute;
  inset: auto 0 .35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

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

.nav-toggle { display: none; }

.language-switcher, .language-core { display: flex; align-items: center; gap: .3rem; }

.language-core a, .language-more summary {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
}

.language-core a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.language-more { position: relative; }

.language-more summary { cursor: pointer; list-style: none; border: 1px solid var(--line); }
.language-more summary::-webkit-details-marker { display: none; }
.language-more[open] summary { background: var(--accent); color: white; }

.language-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + .75rem);
  right: 0;
  display: grid;
  width: 210px;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-popover a {
  padding: .62rem .75rem;
  border-radius: 9px;
  font-size: .85rem;
  text-decoration: none;
}

.language-popover a:hover, .language-popover a[aria-current="page"] { background: var(--accent-soft); }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: calc(100svh - 77px);
  padding-block: clamp(4rem, 9vw, 8.5rem);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.1rem, 10.5vw, 9.2rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
}

.hero-headline {
  max-width: 660px;
  margin: clamp(2rem, 5vw, 3.5rem) 0 1.2rem;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.hero-bio { max-width: 670px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.12rem); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--surface); }

.phone-stage { display: grid; justify-items: center; gap: 1.5rem; }

.phone-introduction { width: min(100%, 360px); }
.phone-introduction h2 { margin: 0 0 .4rem; font-size: 1.5rem; letter-spacing: -.03em; }
.phone-introduction p:last-child { margin: 0; color: var(--muted); font-size: .88rem; }

.phone-device {
  position: relative;
  width: min(100%, 360px);
  min-width: min(100%, var(--phone-minimum));
  aspect-ratio: var(--phone-aspect);
  padding: 8px;
  border: 2px solid #070b09;
  border-radius: 44px;
  background: #070b09;
  box-shadow: 0 40px 90px rgb(17 23 20 / 22%), 0 10px 24px rgb(17 23 20 / 14%);
}

.phone-hardware {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: 31%;
  height: 26px;
  border-radius: 999px;
  background: #070b09;
  transform: translateX(-50%);
}

.phone-hardware span { position: absolute; top: 9px; right: 23%; width: 7px; height: 7px; border-radius: 50%; background: #1d2824; }

.phone-screen {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background: linear-gradient(160deg, #ffd1c8 0%, #e688bd 46%, #7555aa 100%);
  color: #101511;
}

.phone-status { display: flex; justify-content: space-between; padding: 13px 23px 8px; font-size: .62rem; font-weight: 800; }

.phone-appbar { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem .8rem; font-size: .78rem; font-weight: 850; }
.phone-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: white; font-size: .58rem; letter-spacing: .06em; }

.phone-tabs {
  display: flex;
  gap: .35rem;
  padding: 0 .8rem .75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.phone-tabs::-webkit-scrollbar { display: none; }

.phone-tabs button {
  flex: 0 0 auto;
  padding: .38rem .6rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 35%);
  color: var(--ink);
  cursor: pointer;
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .04em;
}
.phone-tabs button[aria-selected="true"] { background: var(--ink); color: white; }

.phone-pages { min-height: 0; padding: 0 .75rem; }
.phone-page { height: 100%; }
.phone-page[hidden] { display: none; }
.phone-page-label { margin: 0 0 .55rem .2rem; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.phone-list { display: grid; gap: .52rem; }

.phone-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .68rem;
  min-height: 68px;
  padding: .58rem;
  border: 1px solid rgb(17 23 20 / 12%);
  border-radius: 14px;
  background: rgb(255 253 248 / 83%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgb(17 23 20 / 8%);
}

.phone-item:not(.phone-item-static):hover { background: white; transform: translateY(-1px); }
.phone-item-copy { min-width: 0; }
.phone-item strong, .phone-item small { display: block; }
.phone-item strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.phone-item small { display: -webkit-box; margin-top: .12rem; overflow: hidden; color: var(--muted); font-size: .58rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.phone-item-arrow { font-size: .86rem; font-weight: 900; }

.project-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; overflow: hidden; border-radius: 12px; background: var(--ink); color: white; font-size: .62rem; font-weight: 900; letter-spacing: .04em; }
.project-mark-fallback { display: block; }
.project-mark.has-project-icon { padding: 4px; border: 1px solid rgb(17 23 20 / 12%); background: #fff; color: transparent; box-shadow: 0 4px 12px rgb(17 23 20 / 8%); }
.project-mark.has-project-icon .project-mark-fallback { display: none; }
.project-mark img { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: contain; object-position: center; }
.accent-green { background: #173c32; }
.accent-coral { background: #b44e42; }
.accent-blue { background: #315e83; }
.accent-yellow { background: #d79c25; color: #17130a; }
.accent-red { background: #9a3737; }
.accent-violet { background: #65518e; }

.phone-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 1rem 1.1rem; }
.phone-controls button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 60%); color: var(--ink); cursor: pointer; font-weight: 900; }
.phone-dots { display: flex; justify-content: center; gap: .32rem; }
.phone-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgb(17 23 20 / 30%); }
.phone-dots i.active { width: 18px; border-radius: 99px; background: var(--ink); }

.featured-publication { background: var(--ink); color: var(--paper); }
.featured-grid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: clamp(5rem, 10vw, 9rem); }
.book-cover-wrap { position: relative; width: min(100%, 310px); aspect-ratio: 5 / 8; margin-inline: auto; }
.book-cover-wrap::before { content: ""; position: absolute; inset: 10% -12% -8% 14%; background: #2c866c; filter: blur(30px); opacity: .38; }
.book-cover-wrap img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center; box-shadow: 0 28px 60px rgb(0 0 0 / 44%); }
.featured-copy h2 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 6.2vw, 6.4rem); letter-spacing: -.065em; line-height: .92; }
.featured-subtitle { max-width: 720px; margin: 1.5rem 0; color: var(--accent-soft); font-size: clamp(1.15rem, 2vw, 1.75rem); font-weight: 650; line-height: 1.22; }
.featured-summary { max-width: 690px; color: #cad0cb; }
.publication-status { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; color: var(--accent-soft); font-size: .84rem; font-weight: 720; }
.publication-status span { width: 8px; height: 8px; border-radius: 50%; background: #59c49b; box-shadow: 0 0 0 4px rgb(89 196 155 / 16%); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.text-link { font-size: .84rem; font-weight: 800; text-decoration: none; }
.text-link.light { color: var(--paper); }

.work-section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 6vw, 5.8rem); letter-spacing: -.065em; line-height: .94; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading.compact { max-width: 1000px; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.work-card { display: flex; flex-direction: column; min-height: 330px; padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); }
.work-card-featured { background: var(--accent-soft); }
.work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-type { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.work-card h3 { margin: auto 0 .8rem; font-size: clamp(1.45rem, 2.3vw, 2.2rem); letter-spacing: -.04em; line-height: 1; }
.work-card p { min-height: 4.7em; margin: 0; color: var(--muted); font-size: .92rem; }
.card-link { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.method-section { padding-block: clamp(5rem, 10vw, 9rem); background: var(--signal); }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(17 23 20 / 35%); }
.method-list li { display: grid; grid-template-columns: minmax(60px, .25fr) minmax(0, 1.75fr); gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid rgb(17 23 20 / 35%); }
.method-list > li > span { font-size: .78rem; font-weight: 850; }
.method-list h3 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.method-list p { max-width: 720px; margin: 0; }

.about-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(3rem, 10vw, 10rem); padding-block: clamp(5rem, 11vw, 10rem); }
.about-main h2 { margin: 0 0 1.8rem; font-size: clamp(2.8rem, 6vw, 6rem); letter-spacing: -.065em; line-height: .94; }
.about-main > p:last-child { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.about-aside { align-self: end; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.about-aside > span { display: inline-block; margin-bottom: 3rem; color: var(--accent); font-size: 2.2rem; }
.about-aside h3 { margin: 0 0 .8rem; font-size: 1.45rem; letter-spacing: -.03em; }
.about-aside p { margin: 0; color: var(--muted); }

.ai-section { padding-block: clamp(5rem, 10vw, 8rem); background: var(--accent-soft); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: end; gap: clamp(3rem, 10vw, 9rem); }
.ai-grid h2 { max-width: 800px; margin: 0; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.07em; line-height: .88; }
.ai-statement { max-width: 720px; margin: 2rem 0 0; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.credit-list { margin: 0; border-top: 1px solid rgb(17 23 20 / 28%); }
.credit-list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgb(17 23 20 / 28%); }
.credit-list dt { font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.credit-list dd { margin: 0; }

.contact-section { padding-block: clamp(6rem, 13vw, 12rem); text-align: center; }
.contact-section h2 { max-width: 1000px; margin: 0 auto; font-size: clamp(3rem, 8vw, 8rem); letter-spacing: -.075em; line-height: .88; }
.contact-section > p:not(.eyebrow) { max-width: 640px; margin: 2rem auto; color: var(--muted); font-size: 1.08rem; }
.contact-link { display: inline-flex; align-items: center; gap: 4rem; min-width: min(100%, 360px); margin-top: 1rem; padding: 1rem 0; border-bottom: 2px solid var(--ink); font-weight: 850; text-decoration: none; }
.contact-link span { margin-left: auto; font-size: 1.2rem; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .phone-stage { margin-top: 1rem; }
  .phone-introduction { text-align: center; }
  .featured-grid { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { max-width: 680px; margin-top: 1.5rem; }
}

@media (max-width: 760px) {
  .section-shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { grid-template-columns: auto auto 1fr; gap: .75rem; min-height: 66px; padding-inline: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; order: 2; padding: .5rem; border: 0; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .nav-toggle i, .nav-toggle i::before { display: block; width: 18px; height: 1px; background: var(--ink); content: ""; transition: transform .2s ease; }
  .nav-toggle i::before { transform: translateY(5px); }
  .nav-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::before { transform: rotate(90deg); }
  .site-navigation { position: absolute; top: 100%; left: 16px; right: 16px; display: none; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .site-navigation[data-open] { display: grid; }
  .site-navigation a { padding: .7rem; border-radius: 8px; }
  .site-navigation a:hover { background: var(--accent-soft); }
  .language-switcher { order: 3; justify-self: end; }
  .hero { min-height: auto; padding-block: 4.5rem 5.5rem; }
  .hero-copy h1 { font-size: clamp(3.6rem, 20vw, 7.4rem); }
  .featured-grid { grid-template-columns: 1fr; }
  .book-cover-wrap { width: min(62vw, 280px); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 280px; }
  .about-section, .ai-grid { grid-template-columns: 1fr; }
  .about-aside { max-width: 520px; }
  .site-footer { display: grid; }
}

@media (max-width: 440px) {
  .section-shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-header { padding-inline: 12px; }
  .brand { width: 38px; height: 38px; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .language-core { gap: 0; }
  .language-core a, .language-more summary { min-width: 31px; min-height: 31px; }
  .hero-copy h1 { font-size: clamp(3.25rem, 19vw, 5.1rem); }
  .hero-headline { font-size: 1.38rem; }
  .actions .button { width: 100%; }
  .phone-device { border-radius: 38px; }
  .phone-screen { border-radius: 30px; }
  .phone-item { min-height: 60px; }
  .project-mark { width: 38px; height: 38px; }
  .method-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; }
  .credit-list div { grid-template-columns: 70px minmax(0, 1fr); }
}

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

@media print {
  .site-header, .phone-controls, .actions { display: none; }
  body { background: white; }
  .hero { min-height: auto; }
  .featured-publication { color: black; background: white; }
}
