/* Innova Space · Chanel's portfolio
   Layout idea: a compact bento that fits one screen on desktop and stacks on a phone.
   Light = ivory and gold. Dark = Supernova, the black-and-gold sky from Nudge!. */
:root {
  --bg: #F4F0E8; --tile: #FFFDF9; --edge: #EAE3D6; --ink: #14110D; --muted: #6A6153;
  --line: #E2D9C8; --soft: #EFE7D8; --accent: #8A6626; --on-accent: #FFFDF9;
  --feature: #14110D; --on-feature: #F3ECE0;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0A09; --tile: #15130F; --edge: #221E17; --ink: #F3ECE0; --muted: #A89F92;
    --line: #2B261D; --soft: #211D16; --accent: #D8B46A; --on-accent: #1A140A;
    --feature: #D8B46A; --on-feature: #1A140A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0A09; --tile: #15130F; --edge: #221E17; --ink: #F3ECE0; --muted: #A89F92;
  --line: #2B261D; --soft: #211D16; --accent: #D8B46A; --on-accent: #1A140A;
  --feature: #D8B46A; --on-feature: #1A140A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.gold { color: var(--accent); }
.label { font-size: 13px; font-weight: 500; color: var(--accent); }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Theme-aware images */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* Page frame */
.page { max-width: 1320px; margin: 0 auto; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/* Tiles */
.tile { background: var(--tile); border: 1px solid var(--edge); border-radius: var(--r); padding: 28px; }
.tile.dark { background: var(--feature); color: var(--on-feature); border-color: transparent; }
.tile.dark .muted, .tile.dark .label { color: inherit; opacity: .78; }
a.tile { display: flex; transition: transform .2s ease, border-color .2s ease; }
a.tile:hover { opacity: 1; transform: translateY(-2px); border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.gold { background: var(--accent); color: var(--on-accent); }
.btn.line { border-color: var(--line); color: var(--ink); background: transparent; font-weight: 500; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.icon { flex: none; }

/* Home bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; height: max(640px, calc(100dvh - 108px)); }
.intro { grid-column: span 2; grid-row: span 2; padding: 40px; flex-direction: column; justify-content: space-between; display: flex; }
.intro h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.intro p.lede { font-size: 17px; color: var(--muted); max-width: 440px; margin-top: 18px; }
.feat { grid-column: span 2; grid-row: span 2; padding: 40px; display: flex; gap: 32px; overflow: hidden; }
.feat .copy { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; }
.wordmark { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1; }
.feat .wordmark { font-size: clamp(48px, 4.6vw, 64px); }
.feat .shot { width: min(230px, 38%); flex: none; align-self: center; }
.shot img { width: 100%; height: auto; border-radius: 30px; border: 5px solid var(--ink); }
.prod { flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; }
.prod .head { display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; color: var(--muted); }
.prod h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.015em; margin-bottom: 6px; }
.prod p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.about-tile { flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; background: var(--feature); color: var(--on-feature); border-color: transparent; }
.about-tile .more { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.i-dot { position: relative; display: inline-block; }

/* About */
.about { display: flex; gap: 48px; padding: 40px; }
.about aside { width: 320px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.arch { width: 100%; aspect-ratio: 320 / 360; border-radius: 160px 160px 24px 24px; background: var(--soft); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.arch img { width: 106%; max-width: none; height: auto; }
.about .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about .intro-text { font-size: 20px; line-height: 1.45; letter-spacing: -.01em; max-width: 660px; }
.cv { display: grid; grid-template-columns: 3fr 2fr; gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.cv .col { display: flex; flex-direction: column; gap: 14px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.job b { font-size: 15px; font-weight: 600; }
.job span { font-size: 13px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact .say { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.links { border-top: 1px solid var(--line); }
form.tile { padding: 40px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 10px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; }
.topics input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topics input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 150px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-msg { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Case studies */
.case-hero { padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.case-hero .left { display: flex; flex-direction: column; gap: 22px; }
.case-hero .wordmark { font-size: clamp(64px, 8vw, 96px); }
.case-hero .tag { font-size: clamp(19px, 2vw, 24px); color: var(--muted); }
dl.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
dl.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
dl.facts dd { margin: 6px 0 0; font-size: 15px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.big { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -.01em; margin-top: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
ol.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px 24px; }
ol.steps li { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--line); padding-top: 14px; }
ol.steps li.now { border-color: var(--accent); }
ol.steps .k { font-size: 12px; font-weight: 600; color: var(--muted); }
ol.steps li.now .k, ol.steps.num .k { color: var(--accent); }
ol.steps b { font-size: 17px; font-weight: 600; }
ol.steps span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid4 .tile { padding: 24px; display: flex; flex-direction: column; gap: 8px; border-radius: 24px; }
.grid4 b { font-size: 16px; font-weight: 600; }
.grid4 span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.feature { display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: center; padding: 36px; }
.feature h3 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 12px; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.mini { border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.mini .now { border-radius: 14px; background: var(--accent); color: var(--on-accent); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mini .box { border-radius: 12px; border: 1px solid var(--line); padding: 10px; }
.mini .tip { border-radius: 12px; background: var(--soft); padding: 10px; line-height: 1.45; }
.usp { padding: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.usp p:not(.label) { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; }
.screens { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; font-size: 13px; color: var(--muted); }
.screens .shot { width: 100%; max-width: 240px; }
.wire { width: 100%; max-width: 230px; aspect-ratio: 1 / 2; border-radius: 34px; border: 1px solid var(--line); background: var(--bg); padding: 24px 16px 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; color: var(--ink); }
.wire .t { font-size: 14px; font-weight: 600; }
.wire .h { font-size: 11px; color: var(--muted); line-height: 1.4; }
.wire .in { border-radius: 12px; border: 1px solid var(--line); padding: 12px 10px; font-size: 12px; color: var(--muted); }
.wire .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wire .chips span { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; }
.wire .chips span:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wire .card { border-radius: 12px; background: var(--tile); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.wire .card b { font-size: 12px; } .wire .card span { font-size: 10px; color: var(--muted); }
.wire .ph { border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; padding: 0 10px; }
.wire .scale { display: flex; justify-content: space-between; }
.wire .scale i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.wire .scale i:nth-child(4) { background: var(--accent); border-color: var(--accent); }
.wire .go { margin-top: auto; border-radius: 999px; background: var(--accent); color: var(--on-accent); padding: 10px; font-size: 12px; font-weight: 600; text-align: center; }
.wire .ghost { border-radius: 999px; border: 1px solid var(--line); padding: 9px; font-size: 12px; text-align: center; }
ul.check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
ul.check li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
ul.check i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; transform: translateY(3px); }
ul.check li.done i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
ul.check li:not(.done) span { color: var(--muted); }
ul.qs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.next { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.next a.tile { background: var(--accent); color: var(--on-accent); border-color: transparent; flex-direction: column; justify-content: space-between; gap: 20px; font-size: 22px; font-weight: 600; }
.next a.tile span:first-child { font-size: 13px; font-weight: 500; opacity: .85; }

footer.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 8px; }

/* Tablet */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; }
  .intro, .feat { grid-column: span 2; grid-row: auto; }
  .intro { min-height: 420px; }
  .prod, .about-tile { min-height: 200px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens { --n: 2 !important; }
  .feature { grid-template-columns: 1fr; }
  .feature .mini { max-width: 320px; }
  ol.steps { --n: 3 !important; }
  .about { flex-direction: column; }
  .about aside { width: min(320px, 100%); }
}
/* Phone */
@media (max-width: 680px) {
  .page { padding: 16px 16px 32px; gap: 12px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .intro, .feat { grid-column: auto; padding: 28px; }
  .intro { min-height: 0; gap: 28px; }
  .feat { flex-direction: column; }
  .feat .shot { width: 70%; max-width: 240px; }
  .tile { padding: 24px; }
  .contact, .pair, .two, .cv, .case-hero, .usp, .next { grid-template-columns: 1fr; }
  .contact .say, form.tile, .about, .case-hero, .usp { padding: 28px; }
  .case-hero { gap: 28px; }
  .grid4 { grid-template-columns: 1fr; }
  ol.steps { --n: 1 !important; }
  .screens { --n: 1 !important; }
  .feature { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* About · How I work */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.how b { font-size: 15px; font-weight: 600; }
.how span { font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (max-width: 680px) { .how { grid-template-columns: 1fr; } }

/* Header IS mark (Bodoni, medium) */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.is-mark { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 24; font-size: 26px; line-height: 1; letter-spacing: 0; color: var(--ink); }
.is-mark b { font-weight: 500; color: var(--accent); margin-left: .03em; }
.brand { white-space: nowrap; }
@media (max-width: 680px) { .brand > span:last-child { display: none; } }
