/* India Dowley – commercial authority, exceptional taste.
   Layout: 12-column grid on warm paper; an inset portrait in the hero; one contrasting statement band;
   a single accent for actions and key details; charcoal for type and footer.
   Accent: tobacco. */
/* Fonts – self-hosted, Latin subset (Newsreader 400–500 with optical sizing, Schibsted Grotesk 400–600) */
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-grotesk.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F3EFE7;
  --paper-deep: #E9E3D8;
  --ink: #141518;
  --ink-soft: #33353A;
  --stone: #5E5A53;
  --rule: #D3CCBF;
  --accent: #8A5A36;          /* rules and details */
  --accent-text: #7A4D2C;     /* text-safe accent on paper */
  --btn-bg: #7A4D2C;
  --btn-fg: #F3EFE7;
  --btn-hover: #141518;
  --st-bg: #141518;
  --st-fg: #F3EFE7;
  --st-soft: #C9C3B7;
  --st-rule: #3A3B3F;
  --st-accent: #C1916A;
  --on-dark: #F3EFE7;
  --on-dark-soft: #C9C3B7;
  --on-dark-rule: #3A3B3F;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1440px;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --section: clamp(64px, 7.5vw, 112px);
  color-scheme: light;
}

/* Text selection in tobacco */
::selection { background: var(--accent-text); color: var(--paper); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.grid > * { min-width: 0; }

/* Type */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
}
.label::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.2vw, 92px); line-height: 0.99; letter-spacing: -0.028em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.35vw, 34px); line-height: 1.15; letter-spacing: -0.008em; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Actions */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  font: 500 16px/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ne { display: inline-block; transition: transform .25s ease; }
a:hover .ne { transform: translate(2px, -2px); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.nav a:not(.btn):hover { color: var(--accent-text); border-color: var(--accent); }
.nav a[aria-current="page"] { border-color: var(--ink); }

/* Hero: text on the grid, portrait bleeding to the right edge */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; background: var(--paper); padding-block: clamp(32px, 4vw, 64px) clamp(8px, 1.5vw, 24px); }
.hero__text {
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding-left: max(var(--edge), env(safe-area-inset-left, 0px));
  padding-right: clamp(32px, 4vw, 72px);
  padding-block: clamp(40px, 5vw, 80px);
}
.hero__text .h1 { max-width: none; font-size: clamp(42px, 5.3vw, 78px); }
.hero__text .h1 span { display: block; white-space: nowrap; }
.hero__text .lede { max-width: 38ch; }
.hero__text .btn { align-self: flex-start; margin-top: 6px; }
.hero__portrait { position: relative; margin: 0 max(var(--edge), env(safe-area-inset-right, 0px)) 0 0; justify-self: end; width: min(100%, 480px); aspect-ratio: 4 / 5; background: var(--paper-deep); }
.hero__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }

/* Credentials */
.credentials { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.credentials ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.credentials li { padding: 34px 24px 36px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.credentials li:first-child { border-left: 0; padding-left: 0; }
.credentials .org { font-family: var(--serif); font-size: clamp(25px, 2.25vw, 33px); line-height: 1.1; letter-spacing: -0.01em; }
.credentials .role { font-size: 15px; color: var(--stone); }

/* Expertise */
.value { padding-block: var(--section); }
.value__head { margin-bottom: clamp(40px, 4.5vw, 64px); }
.value__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value__list li { border-top: 2px solid var(--accent); padding-top: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-right: clamp(0px, 2vw, 32px); }
.value__list p { color: var(--ink-soft); max-width: 38ch; text-wrap: pretty; }
@media (min-width: 861px) { .value__list .h3 { min-height: 2.3em; } }

/* Closing */
.closing { padding-block: 0 clamp(64px, 7vw, 104px); }
.closing .wrap > div {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
  border-top: 1px solid var(--ink); padding-top: clamp(40px, 5vw, 64px);
}
.closing .display { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 8.6vw, 132px); line-height: 0.96; letter-spacing: -0.032em; }

.closing__text { display: grid; gap: 20px; }
.closing__text .lede { max-width: 36ch; }

/* Footer (charcoal) */
.site-footer { background: var(--ink); color: var(--on-dark-soft); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-block: 40px 44px; }
.site-footer .name { font-family: var(--serif); font-size: 22px; color: var(--on-dark); display: block; margin-bottom: 4px; }

/* Inner page hero */
.page-hero { padding-block: clamp(40px, 4.5vw, 72px) clamp(32px, 3.5vw, 52px); }
.page-hero .h1 { font-size: clamp(46px, 6.2vw, 96px); line-height: 0.96; letter-spacing: -0.03em; }

/* Experience – sections: heading in the first three columns, content across the remaining nine */
.xs { border-top: 1px solid var(--ink); padding-block: clamp(44px, 5vw, 76px); }
.xs .grid { row-gap: 28px; }
.xs__head { grid-column: 1 / span 3; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; letter-spacing: -0.005em; max-width: 12ch; }
.xs__body { grid-column: 4 / -1; }

/* Feature entries – major roles */
.xf { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 14px 40px; padding-block: clamp(30px, 3vw, 44px); border-top: 1px solid var(--rule); }
.xf:first-child { border-top: 0; padding-top: 0; }
.xf:last-child { padding-bottom: 0; }
.xf__name { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.022em; }
.xf__role { margin-top: 12px; font-size: 14px; letter-spacing: 0.01em; color: var(--stone); }
.xf__desc { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; padding-top: clamp(4px, 0.6vw, 10px);  text-wrap: pretty; }

/* Results – shown only where there is an established figure */
/* Figures sit under the description, in the same column, so they read as part of the entry */
.xf__figs { grid-column: 2; margin-top: clamp(4px, 0.8vw, 10px); padding-top: 22px; border-top: 1px solid var(--rule); }
.xf__figlabel { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.figs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 5vw, 80px); }
.figs li { display: grid; gap: 8px; }
.fig__n { font-family: var(--serif); font-size: clamp(42px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.025em; color: var(--accent-text); white-space: nowrap; font-variant-numeric: lining-nums; }
.fig__c { font-size: 14px; line-height: 1.45; color: var(--stone); max-width: 24ch;  text-wrap: pretty; }

/* Partnerships & commissions – light band, typographic grid */
.xs--partners { background: var(--paper-deep); border-top: 0; }
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.partners li { border-top: 1px solid var(--rule); padding: 16px 12px 30px 0; font-family: var(--serif); font-size: clamp(21px, 1.75vw, 27px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.partners li:nth-child(-n+4) { border-top-color: var(--ink); }
.partners__wide { grid-column: span 2; }
.xs--partners + .xs { border-top: 0; }

/* Medium screens: section heading sits above its content so the content keeps full width */
@media (max-width: 1180px) {
  .xs__head { grid-column: 1 / -1; max-width: none; }
  .xs__body { grid-column: 1 / -1; }
}

/* Testimonials ("Kind words.") – ready for a future section on the Experience page; not used yet.
   Markup and instructions: MAINTENANCE-GUIDE.txt. With an odd number of quotes, the last one spans the full width. */
.kw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.kw-list > li { border-top: 1px solid var(--rule); padding: 26px 0 34px; }
.kw { margin: 0; }
.kw-list > li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.kw-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kw blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; letter-spacing: -0.008em; color: var(--ink); max-width: 46ch; text-wrap: pretty; }
.kw figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--stone); }
.kw figcaption strong { font-weight: 500; color: var(--ink); }

/* Compact entries – shorter engagements */
.xc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.xc { border-top: 1px solid var(--rule); padding: 24px 0 30px; }
.xc-list > .xc:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.xc__name { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.012em; }
.xc__role { margin-top: 8px; font-size: 14px; color: var(--stone); }
.xc__desc { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 46ch;  text-wrap: pretty; }
.xc-list--after { margin-top: clamp(30px, 3vw, 44px); }
.xc-list--after > .xc:nth-child(-n+2) { border-top: 1px solid var(--rule); padding-top: 24px; }

/* Contact */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact { padding-block: clamp(56px, 7vw, 112px) clamp(80px, 9vw, 136px); }
.contact__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; padding-bottom: clamp(48px, 6vw, 88px); }
.contact__h { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11vw, 168px); line-height: 0.92; letter-spacing: -0.035em; }
.contact__intro .lede { max-width: 30ch; padding-bottom: 0.6em; }
.stuck { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 24px; align-items: start; border-top: 1px solid var(--ink); padding-top: clamp(24px, 3vw, 40px); margin-bottom: clamp(56px, 6.5vw, 96px); }
.stuck__q { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); padding-top: 0.9em; }
.stuck__list { list-style: none; margin: 0; padding: 0; }
.stuck__list li + li { border-top: 1px solid var(--rule); }
.stuck__list a { display: flex; align-items: baseline; gap: clamp(16px, 2vw, 28px); padding: clamp(14px, 1.6vw, 22px) 0; text-decoration: none; color: var(--ink); transition: color .25s ease; }
.stuck__list li:first-child a { padding-top: 0; }
.stuck__n { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent-text); min-width: 2ch; }
.stuck__l { font-family: var(--serif); font-size: clamp(26px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.stuck__list .ne { margin-left: auto; padding-left: 16px; font-size: clamp(16px, 1.4vw, 21px); color: var(--accent-text); opacity: 0; transform: translate(-6px, 6px); transition: opacity .25s ease, transform .3s ease; }
.stuck__list a:hover, .stuck__list a:focus-visible { color: var(--accent-text); }
.stuck__list a:hover .ne, .stuck__list a:focus-visible .ne { opacity: 1; transform: none; }
/* Keyboard focus: same tobacco treatment as hover plus a fine underline, instead of a box */
.stuck__list a:focus-visible, .contact__lines a:focus-visible { outline: none; }
.stuck__list a:focus-visible .stuck__l { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
@media (hover: none) { .stuck__list .ne { opacity: 1; transform: none; } .stuck__list a:active { color: var(--accent-text); } }
@media (max-width: 860px) { .stuck { grid-template-columns: minmax(0, 1fr); } .stuck__q { padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { .stuck__list .ne { transition: none; } }
.contact__lines { margin: 0; border-top: 1px solid var(--ink); }
.contact__lines > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 24px; align-items: baseline; padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--rule); }
.contact__lines dt { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.contact__lines dd { margin: 0; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.contact__lines a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color .25s ease, background-size .35s ease; }
.contact__lines a:hover, .contact__lines a:focus-visible { color: var(--accent-text); background-size: 100% 1px; }
.contact__lines .ne { display: inline-block; margin-left: 0.3em; font-size: 0.75em; color: var(--accent-text); transition: transform .3s ease; }
.contact__lines a:hover .ne, .contact__lines a:focus-visible .ne { transform: translate(2px, -2px); }


/* Responsive */
@media (max-width: 1080px) {
  .credentials ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials li { padding: 28px 20px 30px; }
  .credentials li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .credentials li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__text { padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); padding-block: 28px 40px; gap: 22px; }
  .hero__text .btn { align-self: stretch; justify-content: center; }
  .hero { padding-block: 0 clamp(40px, 8vw, 56px); }
  .hero__portrait { justify-self: start; max-width: 480px; width: calc(100% - 2 * var(--gutter)); margin: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }
  .value__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .xf { grid-template-columns: minmax(0, 1fr); }
  .xf__figs { grid-column: 1; }
  .figs { column-gap: 36px; }
  .fig__c { max-width: 17ch; }
  .xf__figs--single .fig__c { max-width: 30ch; }
  .xs__head { max-width: none; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
  .xs .grid { row-gap: 22px; }
  .xc-list { grid-template-columns: minmax(0, 1fr); }
  .kw-list { grid-template-columns: minmax(0, 1fr); }
  .kw-list > li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 26px; }
  .xc-list > .xc:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 24px; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .partners li:nth-child(n+3) { border-top-color: var(--rule); }
  .contact__intro { grid-template-columns: minmax(0, 1fr); }
  .contact__lines > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 68px; }
  .wordmark { font-size: 13px; letter-spacing: 0.16em; }
  .nav { gap: 20px; font-size: 14px; }
  .nav .btn { display: none; }
  .label { font-size: 12px; gap: 12px; }
  .label::before { width: 24px; }
  .credentials .org { font-size: 23px; }
  .credentials .role { font-size: 14px; }
  .closing .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) { .nav { gap: 14px; } .partners li { font-size: 19px; } }
@media (max-width: 340px) { .partners { column-gap: 12px; } .partners li { font-size: 16px; padding-right: 0; } .stuck__l { font-size: 23px; } }
@media (max-width: 860px) { .hero__text .h1 { font-size: clamp(36px, 10.4vw, 52px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
