:root {
  color-scheme: light;
  --ink: #181818;
  --copy: #626262;
  --muted: #a2a2a2;
  --blue: #345fd1;
  --gutter: clamp(26px, 7.8vw, 142px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

a { color: inherit; }

.site-shell {
  width: min(84.5%, 1220px);
  margin: 0 auto;
  padding-top: clamp(112px, 13.5vh, 194px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand { min-width: 0; }

.brand-name {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 55px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-decoration: none;
  white-space: nowrap;
}

.brand-role {
  margin-top: 21px;
  color: #a4a4a4;
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 54px);
  padding-top: 16px;
}

.main-nav a {
  color: #9b9b9b;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 400;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #171717; }

#app { min-height: 260px; outline: none; }

.page {
  padding-top: clamp(80px, 9vh, 140px);
  animation: enter 300ms ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 1.8vw, 32px);
  row-gap: clamp(52px, 5.4vw, 94px);
}

.work-card {
  min-width: 0;
  text-align: center;
}

.work-card a { text-decoration: none; }

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4f4f4;
  transition: opacity 180ms ease;
}

.work-card a:hover img { opacity: 0.88; }

.card-title {
  margin: 22px 8px 0;
  color: #686868;
  font-size: clamp(12px, 0.96vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.ai-intro {
  max-width: 1500px;
  color: var(--copy);
  font-size: clamp(17px, 1.3vw, 23px);
  font-weight: 300;
  line-height: 1.85;
}

.ai-intro p { margin: 0 0 24px; }

.ai-intro a,
.about-copy a,
.case-copy a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.perci-preview {
  display: block;
  margin: clamp(18px, 1.2vw, 28px) 0 clamp(72px, 8vw, 122px);
  color: inherit;
  text-decoration: none;
}

.perci-preview img { display: block; width: 100%; height: auto; }

.perci-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(22px, 9vw, 250px);
  border-bottom: 1px solid #efefef;
  color: var(--blue);
  font-size: clamp(19px, 1.6vw, 28px);
  font-weight: 650;
}

.perci-sign-in {
  padding: 10px 22px;
  border: 1px solid #eee;
  border-radius: 5px;
  color: #272727;
  font-size: 13px;
  font-weight: 550;
}

.perci-hero {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  min-height: clamp(250px, 31vw, 460px);
  padding: 36px clamp(35px, 9vw, 250px);
  background: #fff;
}

.perci-hero h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 67px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.perci-portrait {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f2f1 0%, #fbfbfb 70%);
  color: #d2ccca;
  font-size: 70px;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.ai-grid { margin-top: 0; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  min-height: 620px;
}

.about-copy {
  max-width: 610px;
  color: var(--copy);
  font-size: clamp(17px, 1.23vw, 22px);
  font-weight: 300;
  line-height: 1.85;
}

.about-copy h1 {
  margin: 0 0 42px;
  color: var(--ink);
  font-size: clamp(34px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.38;
}

.about-copy p { margin: 0 0 22px; }

.about-links { display: flex; gap: 25px; margin-top: 30px; }

.about-art {
  align-self: start;
  display: block;
  width: 100%;
  max-height: 660px;
  margin-top: -85px;
  object-fit: cover;
  object-position: center;
}

.case-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 72px 0 36px;
  color: #969696;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.case-nav a { text-decoration: none; }
.case-nav a:hover { color: var(--ink); }

.case-copy {
  max-width: none;
  margin: 0 0 28px;
  color: var(--copy);
  font-size: clamp(15px, 1vw, 16px);
  font-weight: 300;
  line-height: 1.75;
}

.case-copy p { margin: 0 0 22px; }
.case-copy-followup { margin: 32px 0 0; }

.case-section-title {
  margin: 42px 0 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.ai-case { color: var(--copy); }

.ai-case-intro {
  margin: 0 0 48px;
  color: var(--copy);
  font-size: clamp(18px, 1.42vw, 23px);
  font-weight: 300;
  line-height: 1.85;
}

.ai-case-title {
  margin: 0 0 45px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
}

.ai-case-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 70px);
}

.ai-case-copy {
  color: var(--copy);
  font-size: clamp(18px, 1.42vw, 23px);
  font-weight: 300;
  line-height: 1.85;
}

.ai-case-copy p { margin: 0 0 25px; }
.ai-case-copy a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.ai-profile-image,
.ai-post-gallery img,
.ai-notebook-image {
  display: block;
  width: 100%;
  height: auto;
}

.ai-case-lower { margin-top: clamp(70px, 9vw, 140px); }
.terry-case .ai-case-intro { margin-bottom: 30px; }
.ai-post-gallery { display: grid; gap: 34px; }

.ai-case-nav {
  display: flex;
  justify-content: space-between;
  margin: clamp(75px, 10vw, 150px) 0 clamp(90px, 12vw, 175px);
  color: #969696;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.ai-case-nav a { text-decoration: none; }
.ai-case-nav a:hover { color: var(--ink); }

.ai-notebook-image { margin: 46px 0 0; max-width: 1280px; }

.case-hero {
  display: block;
  width: 100%;
  height: auto;
  max-height: 900px;
  object-fit: contain;
  object-position: center;
  background: #f5f5f5;
}

.case-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 50px 0;
  background: #111;
}

.case-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.awards {
  max-width: none;
  margin: 36px 0 46px;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
}

.awards strong {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.award-group {
  margin: 0 0 20px;
}

.award-group b {
  display: block;
  margin: 0 0 3px;
  color: var(--ink);
  font-weight: 700;
}

.award-group p {
  margin: 0 0 3px;
}

.credits {
  margin: 44px 0 58px;
  color: #808080;
  font-size: 14px;
  line-height: 1.9;
}

.case-back { display: block; margin: 70px auto 10px; color: #818181; text-align: center; }
.case-back a { text-decoration: none; }

.site-footer {
  margin: clamp(110px, 13vw, 190px) 0 58px;
  color: #999;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-align: center;
}

@media (max-width: 760px) {
  .site-shell { width: auto; margin: 0; padding: 72px 25px 0; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 24px; }
  .brand-name { font-size: clamp(40px, 10vw, 60px); }
  .brand-role { margin-top: 12px; font-size: 13px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 16px; padding: 0; }
  .main-nav a { font-size: 13px; }
  .page { padding-top: 100px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 16px; }
  .card-title { margin-top: 13px; font-size: 10px; letter-spacing: 0.09em; }
  .about-layout { grid-template-columns: 1fr; gap: 42px; min-height: 0; }
  .about-copy { font-size: 17px; }
  .about-copy h1 { margin-bottom: 32px; font-size: clamp(32px, 8vw, 44px); line-height: 1.28; }
  .about-art { max-height: 520px; margin-top: 0; }
  .perci-preview { margin: 48px 0 66px; }
  .case-nav { margin: 56px 0 30px; }
  .case-copy { font-size: 16px; }
  .ai-case-intro { margin-bottom: 100px; }
  .ai-case-columns { grid-template-columns: 1fr; gap: 24px; }
  .ai-case-title { margin-bottom: 28px; }
  .ai-case-lower { margin-top: 55px; }
  .ai-case-nav { margin: 65px 0 80px; }
  .site-footer { margin: 100px 0 38px; font-size: 11px; }
}

@media (max-width: 420px) {
  .work-grid { grid-template-columns: 1fr; gap: 38px; }
  .card-title { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
