/* ---------- tokens (OPX Studio — monochrome void) ---------- */
:root{
  --void: #020202;
  --surface: #000000;
  --hairline: #292a2c;
  --white: #ffffff;
  --ash: #9b9b9b;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --body-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --s1: 7px; --s2: 15px; --s3: 30px; --s4: 50px; --s5: 100px; --s6: 150px;
  --maxw: 1240px;
  --radius-pill: 45px;
  --ease-glide: cubic-bezier(.19,1,.22,1);
  --gradient-wash: linear-gradient(120deg, rgb(160,224,171), rgb(255,172,46) 50%, rgb(165,45,37));
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--sans);
  background: var(--void);
  color: var(--white);
  font-weight: 400;
  line-height: 1.67;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
/* browser surfaces inherit the palette rather than the OS default blue */
::selection{ background: var(--white); color: var(--void); }
input, textarea{ caret-color: var(--white); }
img{ max-width: 100%; display:block; }
ul{ list-style: none; }

.section-wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }

/* intro overlay now lives inline in index.html (spiral intro, homepage-only) */

/* ---------- header / nav ---------- */
#site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(2,2,2,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-wrap{
  max-width: var(--maxw); margin: 0 auto; padding: var(--s2) var(--s4);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3);
}

/* Three zones: spiral mark on the left, section links on their own centre axis,
   the @ (Grow With Me) on the right. The 1fr side columns keep the middle
   column optically centred on the page, not on whatever the sides happen to weigh. */
.nav-icon{
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); border: 1px solid transparent; flex-shrink: 0;
  transition: border-color .25s var(--ease-glide), color .25s var(--ease-glide), transform .3s var(--ease-glide);
}
.nav-icon svg{ width: 25px; height: 25px; display: block; }
.nav-icon:hover{ border-color: var(--hairline); }
.nav-icon.is-active,
.nav-icon[aria-current="page"]{ border-color: var(--white); }
.nav-icon:focus-visible{ outline: 1px solid var(--white); outline-offset: 3px; }

/* Explicit columns: .nav-links is display:none below 860px, which drops it out
   of the grid entirely and would otherwise slide .nav-end into the middle. */
.nav-mark{ grid-column: 1; justify-self: start; }
.nav-end{ grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--s1); }
.nav-reach{ position: relative; }

/* The two marks are peers, so they answer a hover the same way: the same tilt,
   the same timing. This is the spiral's original gesture, now shared. */
.nav-mark svg,
.nav-reach svg{ transition: transform .6s var(--ease-glide); transform-origin: 50% 50%; }
.nav-mark:hover svg,
.nav-reach:hover svg,
.nav-mark:focus-visible svg,
.nav-reach:focus-visible svg{ transform: rotate(-50deg); }

@media (prefers-reduced-motion: reduce){
  .nav-mark svg, .nav-reach svg{ transition: none; }
}

/* Icon-only links are quiet by design, so the label appears on hover and on
   keyboard focus rather than sitting in the bar as permanent text. */
.nav-reach::after{
  content: attr(data-label);
  position: absolute; top: calc(100% + 6px); right: 0;
  font-size: 12px; letter-spacing: .02em; color: var(--ash); white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-reach:hover::after, .nav-reach:focus-visible::after{ opacity: 1; transform: none; }

.nav-links{ grid-column: 2; display: flex; gap: var(--s4); justify-content: center; }
.nav-links a{
  font-size: 15px; color: var(--white); font-weight: 400;
  transition: color .2s; padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav-links a:hover{ color: var(--ash); }
.nav-links a.active, .mobile-nav a.active{ font-weight: 600; border-bottom-color: var(--white); }
.nav-cta{
  border: 1px solid var(--white); color: var(--white);
  padding: 7px 15px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--white); color: var(--void); }
.nav-toggle{ display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px 8px; }
.nav-toggle span{ width: 22px; height: 1px; background: var(--white); display: block; }
.mobile-nav{
  display: none; flex-direction: column; padding: var(--s2) var(--s4) var(--s3);
  border-top: 1px solid var(--hairline);
}
.mobile-nav a{ padding: var(--s2) 0; font-size: 16px; color: var(--white); border-bottom: 1px solid var(--hairline); }
.mobile-nav.open{ display: flex; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex; align-items: center;
  padding: var(--s4) var(--s4);
  overflow: hidden;
  background: var(--void);
}
.hero-grid{
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: var(--s4);
}
.hero-inner{ max-width: 820px; text-align: left; width: 100%; }
.hero-portrait-wrap{
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: 4px;
  justify-self: end; width: 100%; max-width: 340px;
}
.hero-portrait{ width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-spiral{
  position: absolute; top: -34px; right: -34px; width: 92px; height: 92px;
  color: var(--white); opacity: 0;
  animation: spiralLoop 7s cubic-bezier(.45,0,.4,1) infinite;
}
@keyframes spiralLoop{
  0%{ opacity: 0; transform: rotate(0deg) scale(.6); }
  15%{ opacity: .85; transform: rotate(120deg) scale(1); }
  55%{ opacity: .85; transform: rotate(300deg) scale(1); }
  85%{ opacity: 0; transform: rotate(430deg) scale(.6); }
  100%{ opacity: 0; transform: rotate(430deg) scale(.6); }
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: var(--s4); }
  .hero-portrait-wrap{ justify-self: center; max-width: 320px; order: -1; }
}
.eyebrow{
  font-size: 14px; letter-spacing: .02em;
  color: var(--ash); font-weight: 400; margin-bottom: var(--s3);
}
.hero-headline{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, min(7.8vw, 9vh), 116px);
  line-height: 1.0; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: var(--s3);
  opacity: 0; transform: translateY(24px);
  animation: heroIn 1s var(--ease-glide) .15s forwards;
}
@keyframes heroIn{ to{ opacity: 1; transform: translateY(0); } }
.hero-sub{
  font-family: var(--body-sans);
  font-size: 20px; line-height: 1.55; color: var(--white); max-width: 600px; margin-bottom: var(--s3);
  font-weight: 400; opacity: .82;
}
.hero-actions{ display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  border: 1px solid var(--white);
  transition: background .25s var(--ease-glide), color .25s var(--ease-glide), transform .3s var(--ease-glide);
}
.btn:hover{ transform: scale(1.04); }
.btn-primary{ background: var(--white); color: var(--void); }
.btn-primary:hover{ background: transparent; color: var(--white); }
.btn-ghost{ color: var(--white); background: transparent; }
.btn-ghost:hover{ background: var(--white); color: var(--void); }
.hero-count{ font-size: 13px; color: var(--ash); letter-spacing: .02em; }

/* floating animated card — reskinned monochrome, no shadow/fill, outline only */
.floating-card{
  position: absolute; right: var(--s4); bottom: var(--s4);
  background: transparent; color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--s3);
  display: flex; align-items: center; gap: var(--s2);
  width: 300px; max-width: calc(100vw - 48px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.floating-card.in{ opacity: 1; transform: translateY(0); }
.fc-icon{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--white); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.fc-body{ flex: 1; min-width: 0; }
.fc-label{ font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.fc-caption{ font-size: 12px; color: var(--ash); line-height: 1.4; }
.fc-arrow{
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--white); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; transition: background .2s, color .2s;
}
.fc-arrow:hover{ background: var(--white); color: var(--void); }

/* ---------- sections ---------- */
.section{ padding: var(--s6) var(--s4); }
.section-alt{ background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.sec-eyebrow{
  font-size: 14px; letter-spacing: .02em;
  color: var(--ash); font-weight: 400; margin-bottom: var(--s2);
  display: flex; align-items: center; gap: 8px;
}
.sec-eyebrow::before, .work-cat-title::before{
  content: ''; display: inline-block; width: 13px; height: 13px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c0-.6.4-1 1-1 1.4 0 2.5 1.1 2.5 2.5S14.4 16 13 16c-2.2 0-4-1.8-4-4s2.1-5 5-5 6 2.7 6 6-3 7-7 7' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  opacity: .55;
  animation: spiralTick 6s linear infinite;
}
.work-cat-title{ display: flex; align-items: center; gap: 8px; }
.work-cat-title::before{ width: 15px; height: 15px; }
@keyframes spiralTick{ to{ transform: rotate(360deg); } }
.sec-title{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 50px); margin-bottom: var(--s4);
  max-width: 680px; line-height: 1.15; letter-spacing: -0.01em;
}
.section-intro{ font-family: var(--body-sans); font-size: 20px; line-height: 1.6; color: var(--ash); max-width: 640px; margin-bottom: var(--s4); margin-top: -30px; }

/* ---------- work category groups ---------- */
.work-category{ margin-top: var(--s6); scroll-margin-top: 90px; }
.work-category:first-of-type{ margin-top: var(--s4); }
.work-cat-title{
  font-family: var(--display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; color: var(--white);
  margin-bottom: var(--s3); padding-bottom: var(--s2);
  border-bottom: 1px solid var(--hairline);
}
/* Inline links inside prose: full-strength text with a soft underline, so they read as
   clickable mid-sentence instead of looking like de-emphasised grey copy. */
.inline-handle{
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, background .2s ease;
}
.inline-handle:hover{ text-decoration-color: var(--white); background: rgba(255,255,255,.08); }
.card-ig-links{ display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.card-ig-links a, .card-ig-links .card-ig-pending{ font-size: 13px; }
.card-ig-pending{ color: var(--ash); font-style: italic; opacity: .8; }

/* ---------- selected work (homepage feature grid) ---------- */
.feature-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s4);
}
.feature-card{
  display: block; border: 1px solid var(--hairline); background: var(--surface);
  transition: transform .45s var(--ease-glide), border-color .3s ease;
}
.feature-card:hover{ transform: translateY(-6px); border-color: var(--white); }
.feature-media{ aspect-ratio: 16/10; overflow: hidden; background: var(--void); }
.feature-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease-glide);
}
.feature-card:hover .feature-media img{ transform: scale(1.045); }
.feature-media.is-placeholder{
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ash); text-align: center; padding: var(--s2);
  border-bottom: 1px dashed var(--hairline);
}
.feature-meta{ padding: var(--s2) var(--s3) var(--s3); }
.feature-tag{
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ash); font-weight: 500;
}
.feature-meta h3{
  font-family: var(--display); font-weight: 600; font-size: 24px;
  margin-top: 6px; letter-spacing: -0.01em;
}
.feature-meta p{
  font-family: var(--body-sans); font-size: 14px; line-height: 1.5;
  color: var(--white); opacity: .9; margin-top: 6px;
}
.see-all-wrap{ display: flex; justify-content: center; margin-top: var(--s4); }
.draft-note{
  font-size: 12px; color: var(--ash); font-style: italic; opacity: .9; font-weight: 400;
}
.pill-link{
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2);
  font-size: 13px; font-weight: 500; color: var(--white);
  border: 1px solid var(--white); border-radius: var(--radius-pill);
  padding: 8px 16px; width: fit-content;
  transition: background .25s var(--ease-glide), color .25s var(--ease-glide), transform .3s var(--ease-glide);
}
.pill-link:hover{ background: var(--white); color: var(--void); transform: scale(1.04); }

/* ---------- archive page (work/index.html) ---------- */
.filter-nav{ display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.filter-pill{
  font-size: 13px; font-weight: 500; color: var(--white);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-pill:hover{ background: var(--white); color: var(--void); border-color: var(--white); }
.archive-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3);
}
.archive-card{
  display: block; border: 1px solid var(--hairline);
  transition: transform .4s var(--ease-glide), border-color .3s ease;
}
.archive-card:hover{ transform: translateY(-4px); border-color: var(--white); }
.archive-media{ aspect-ratio: 4/3; overflow: hidden; background: var(--void); }
.archive-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-glide);
}
.archive-card:hover .archive-media img{ transform: scale(1.04); }
.archive-media.is-placeholder{
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ash); text-align: center; padding: var(--s2);
  border-bottom: 1px dashed var(--hairline);
}
.archive-meta{ padding: var(--s2) var(--s3) var(--s3); }
.archive-tag{ font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ash); font-weight: 500; }
.archive-meta h4{ font-family: var(--display); font-weight: 600; font-size: 18px; margin-top: 6px; letter-spacing: -0.01em; }
.archive-meta p{ font-family: var(--body-sans); font-size: 13.5px; line-height: 1.5; color: var(--white); opacity: .9; margin-top: 6px; }
.archive-card.is-draft .archive-meta p{ opacity: .6; font-style: italic; }

.beyond-strip{
  margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--hairline);
}
.beyond-strip .archive-grid{ grid-template-columns: repeat(4, 1fr); max-width: 560px; }

.live-preview-tile{
  width: 100%; height: 100%; border: 0; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  text-align: center; color: var(--white); transition: border-color .2s ease;
}
.live-preview-tile .lpt-icon{ font-size: 24px; opacity: .6; }
.live-preview-tile .lpt-link{
  font-size: 12px; font-weight: 500; border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 6px 14px; transition: background .2s, color .2s, border-color .2s;
}
.archive-card:hover .live-preview-tile .lpt-link{ background: var(--white); color: var(--void); border-color: var(--white); }
.live-preview-tile.has-image{
  position: relative; justify-content: flex-end; padding-bottom: var(--s2);
  background-size: cover; background-position: center;
}
.live-preview-tile.has-image::before{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,2,2,.85) 0%, rgba(2,2,2,.15) 55%, rgba(2,2,2,0) 100%);
}
.live-preview-tile.has-image .lpt-icon{ display: none; }
.live-preview-tile.has-image .lpt-link{ position: relative; background: var(--void); }

@media (max-width: 760px){
  .feature-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .archive-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .archive-grid, .beyond-strip .archive-grid{ grid-template-columns: 1fr; }
}

/* scroll reveal */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .55s var(--ease-glide), transform .55s var(--ease-glide); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- about ---------- */
.about-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: start; }
.about-body{ font-family: var(--body-sans); font-size: 18px; line-height: 1.67; color: var(--white); opacity: .82; font-weight: 400; margin-bottom: var(--s3); max-width: 560px; }
.about-side{ display: flex; flex-direction: column; gap: var(--s3); }
.about-portrait{
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border: 1px solid var(--hairline); filter: grayscale(1);
  transition: filter .4s ease;
}
.about-portrait:hover{ filter: grayscale(0); }
.about-card{
  border-top: 1px solid var(--hairline);
  padding-top: var(--s3);
}
.about-card-label{
  font-size: 13px; letter-spacing: .02em;
  color: var(--ash); margin-bottom: var(--s2); font-weight: 400;
}
.about-card p{ font-family: var(--body-sans); font-size: 14px; color: var(--white); opacity: .82; font-weight: 400; margin-bottom: var(--s1); }
.about-card p:last-child{ margin-bottom: 0; }

/* ---------- process ---------- */
.process-header{
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4);
}
.process-header .sec-title, .process-header .sec-eyebrow{ margin-bottom: 0; }
.dd-wrap{ position: relative; width: 300px; max-width: 100%; flex-shrink: 0; }
.dd-svg{ width: 100%; height: auto; display: block; color: var(--white); }
.dd-diamond{ fill: none; stroke: var(--white); stroke-opacity: .5; stroke-width: 1.3; stroke-linejoin: round; }
.dd-hint{
  font-size: 11px; color: var(--ash); text-align: center; margin-top: 2px;
  font-style: italic; opacity: .8;
}

.dd-dot{
  fill: none; stroke: var(--white); stroke-width: 1.1; stroke-linecap: round;
  transition: stroke-width .2s ease, opacity .2s ease;
  opacity: .8;
}
.dd-underline{
  fill: none; stroke: var(--ash); stroke-width: 1; stroke-linecap: round;
  opacity: .55;
  transition: opacity .2s ease, stroke .2s ease;
}
.dd-label{
  font-family: var(--sans); font-size: 11px; fill: var(--ash);
  text-anchor: middle; letter-spacing: .02em;
  transition: fill .2s ease;
}
.dd-stage{ cursor: pointer; outline: none; transform-origin: center; transform-box: fill-box; }
.dd-stage:hover .dd-label, .dd-stage:focus-visible .dd-label, .dd-stage.is-open .dd-label{ fill: var(--white); }
.dd-stage:hover .dd-underline, .dd-stage:focus-visible .dd-underline, .dd-stage.is-open .dd-underline{ opacity: 1; stroke: var(--white); }
.dd-stage:hover .dd-dot, .dd-stage:focus-visible .dd-dot, .dd-stage.is-open .dd-dot{ stroke-width: 1.6; opacity: 1; }

.dd-stage{ animation: ddBreathe 3.6s ease-in-out infinite; }
.dd-stage:nth-of-type(1){ animation-delay: 0s; }
.dd-stage:nth-of-type(2){ animation-delay: .5s; }
.dd-stage:nth-of-type(3){ animation-delay: 1s; }
.dd-stage:nth-of-type(4){ animation-delay: 1.5s; }
@keyframes ddBreathe{
  0%, 100%{ opacity: .82; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce){
  .dd-stage{ animation: none; }
}

.dd-tooltip{
  position: absolute; z-index: 20; max-width: 210px;
  background: var(--white); color: var(--void);
  border-radius: 14px 16px 15px 18px / 16px 14px 18px 15px;
  padding: 12px 14px;
  font-family: var(--body-sans); font-size: 13px; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px) rotate(-1deg);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.4);
}
.dd-tooltip strong{ display: block; font-family: var(--display); font-size: 13px; margin-bottom: 3px; }
.dd-tooltip.is-visible{ opacity: 1; visibility: visible; transform: translate(-50%, 0) rotate(-1deg); pointer-events: auto; }
.dd-tooltip.dd-tooltip-above{ transform: translate(-50%, -6px) rotate(-1deg); }
.dd-tooltip.dd-tooltip-above.is-visible{ transform: translate(-50%, 0) rotate(-1deg); }
.dd-tooltip::after{
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; background: var(--white); rotate: 45deg;
}
.dd-tooltip:not(.dd-tooltip-above)::after{ top: -5px; }
.dd-tooltip.dd-tooltip-above::after{ bottom: -5px; }

.process-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.process-step{
  border-top: 1px solid var(--hairline); padding-top: var(--s3);
}
.process-num{ font-size: 32px; color: var(--ash); }
.process-step h3{ font-family: var(--display); font-size: 22px; margin: var(--s2) 0 var(--s1); font-weight: 600; }
.process-step p{ font-family: var(--body-sans); font-size: 14px; color: var(--white); opacity: .78; font-weight: 400; }

/* ---------- services ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.service-card{
  border-top: 1px solid var(--hairline); padding-top: var(--s3);
}
.service-card h3{ font-family: var(--display); font-size: 23px; margin-bottom: var(--s1); font-weight: 600; }
.service-card p{ font-family: var(--body-sans); font-size: 14px; color: var(--white); opacity: .78; font-weight: 400; }

/* ---------- contact ---------- */
.contact-wrap{ max-width: 720px; }
.contact-links{ display: flex; flex-direction: column; gap: 0; margin-top: var(--s3); }
.contact-link{
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s2); margin: 0 calc(var(--s2) * -1);
  border-top: 1px solid var(--hairline);
  transition: background .25s ease, padding-left .25s ease;
}
.contact-link:last-child{ border-bottom: 1px solid var(--hairline); }
.contact-link:hover{ background: var(--white); color: var(--void); padding-left: var(--s3); }
.contact-link-icon{
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.contact-link-icon svg{ width: 18px; height: 18px; }
.contact-link:hover .contact-link-icon{ border-color: var(--void); transform: scale(1.08) rotate(-6deg); }
.contact-link-text{ display: flex; flex-direction: column; gap: 2px; flex: 1; }
.contact-link-label{ font-size: 13px; letter-spacing: .02em; color: var(--ash); }
.contact-link:hover .contact-link-label{ color: var(--void); opacity: .6; }
.contact-link-value{ font-size: 20px; color: var(--white); }
.contact-link:hover .contact-link-value{ color: var(--void); }
.contact-link-arrow{
  font-size: 18px; color: var(--ash); flex-shrink: 0;
  transform: translate(0,0); transition: transform .25s ease, color .25s ease;
}
.contact-link:hover .contact-link-arrow{ color: var(--void); transform: translate(4px,-4px); }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--hairline); }
.footer-inner{ display: flex; justify-content: space-between; font-size: 13px; color: var(--ash); padding: var(--s3) 0; }

/* ---------- shared footer (contact icons / services / education) ---------- */
.footer-main{ padding: var(--s5) 0 var(--s4); }
.footer-grid{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s4); }
/* Column labels read as labels everywhere: same size, same colour, same casing.
   Content below them is the white layer. That's the only grey/white split in the footer. */
.footer-col-title{
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ash); margin-bottom: var(--s3); font-weight: 500;
}
/* Contact is the primary call to action, so it gets a headline and a button
   rather than sitting at label size like the other two columns. */
.footer-cta-head{
  font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--white); margin-bottom: var(--s2);
}
.footer-cta-line{ font-size: 14px; line-height: 1.6; color: var(--white); opacity: .9; max-width: 300px; margin-bottom: var(--s3); }
.footer-cta-btn{ margin-bottom: var(--s3); }
.footer-icons{ display: flex; gap: var(--s2); }
.footer-icon{
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--hairline); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-icon svg{ width: 25px; height: 25px; }
.footer-icon:hover{ transform: translateY(-2px); }
.footer-icon:hover{ background: var(--white); color: var(--void); border-color: var(--white); }
.footer-services{ display: flex; flex-direction: column; gap: 8px; }
.footer-services li{ font-size: 14px; color: var(--white); opacity: .9; }
/* :not() keeps this off the column label, which was rendering white while the other
   two footer labels stayed grey. */
.footer-edu p:not(.footer-col-title){ font-size: 14px; color: var(--white); opacity: .9; line-height: 1.6; }

/* ---------- homepage work carousel ---------- */
.carousel-arrows{ display: flex; justify-content: flex-end; gap: var(--s2); margin-bottom: var(--s3); }
.carousel-arrow{
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline); color: var(--white);
  display: flex; align-items: center; justify-content: center; background: transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.carousel-arrow:hover{ background: var(--white); color: var(--void); border-color: var(--white); }
.carousel-track{
  display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s3); cursor: grab; scrollbar-width: none; -ms-overflow-style: none;
  user-select: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-track.dragging{ cursor: grabbing; scroll-snap-type: none; }
.carousel-card{
  flex: 0 0 auto; width: min(340px, 78vw); scroll-snap-align: start;
  border: 1px solid var(--hairline); background: var(--surface); display: block;
  transition: border-color .3s ease, transform .3s var(--ease-glide);
}
.carousel-card:hover{ border-color: var(--white); transform: translateY(-4px); }
.carousel-media{ aspect-ratio: 4/3; overflow: hidden; background: var(--void); }
.carousel-media img{ width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.carousel-media.is-placeholder{
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ash); text-align: center; padding: var(--s2);
  border-bottom: 1px dashed var(--hairline);
}
.carousel-meta{ padding: var(--s2) var(--s3) var(--s3); }
.carousel-tag{ font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ash); font-weight: 500; }
.carousel-meta h3{ font-family: var(--display); font-weight: 600; font-size: 21px; margin-top: 6px; letter-spacing: -0.01em; }
.carousel-meta p{ font-family: var(--body-sans); font-size: 14px; opacity: .9; margin-top: 6px; line-height: 1.5; }

/* ---------- skills soft-board (monochrome cork pinboard, draggable notes) ---------- */
.postit-board{
  position: relative;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--s3) var(--s2);
  padding: var(--s3) 0 var(--s1);
  min-height: clamp(260px, 32vh, 400px);
}
.postit-board::before{
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.postit-hint{
  font-size: 11px; color: var(--ash); font-style: italic; opacity: .8;
  margin-bottom: var(--s3);
}
.postit{
  --tilt: -2deg;
  width: 236px; min-height: 190px; background: #f0efe9; color: #1a1a1a;
  padding: 26px var(--s3) var(--s3); font-family: var(--body-sans);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 3px;
  box-shadow: 0 10px 22px rgba(0,0,0,.4);
  transform: rotate(var(--tilt));
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.postit:hover:not(.is-dragging){ transform: rotate(0deg) scale(1.03) translateY(-4px); box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.postit.is-dragging{ cursor: grabbing; transition: none; z-index: 40; box-shadow: 0 22px 36px rgba(0,0,0,.55); }
.postit:nth-child(6n+1){ --tilt: -2deg; }
.postit:nth-child(6n+2){ --tilt: 1.5deg; }
.postit:nth-child(6n+3){ --tilt: -1deg; }
.postit:nth-child(6n+4){ --tilt: 2.2deg; }
.postit:nth-child(6n+5){ --tilt: -2.6deg; }
.postit:nth-child(6n){ --tilt: 1.1deg; }
.postit::before{
  content: ''; position: absolute; top: -8px; left: 50%;
  width: 20px; height: 20px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20,20 c0,-1 1,-2 3,-2 c3,0 5,3 5,6 c0,4 -4,7 -8,7 c-5,0 -9,-4 -9,-9 c0,-6 5,-11 11,-11 c7,0 13,6 13,13 c0,8 -7,15 -15,15' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
  transition: transform .3s ease;
  pointer-events: none;
}
.postit:hover:not(.is-dragging)::before{ transform: translateX(-50%) rotate(28deg); }
.postit h4{ font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 10px; letter-spacing: -0.01em; color: #1a1a1a; }
.postit p{ font-size: 13px; line-height: 1.6; color: #1a1a1a; opacity: .78; }

/* ---------- tools grid ---------- */
.tools-wrap{ margin-top: var(--s5); }
.tools-label{ font-size: 13px; color: var(--ash); margin-bottom: var(--s3); letter-spacing: .02em; }
.tools-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--s3); max-width: 720px;
}
.tool-tile{
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; color: var(--white);
}
.tool-icon{
  width: 56px; height: 56px; border-radius: 16px;
  border: 1px solid var(--hairline); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tool-icon-logo{
  width: 26px; height: 26px; background-color: var(--ash);
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  transition: background-color .2s ease;
}
.tool-tile:hover .tool-icon{ border-color: var(--white); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.tool-tile:hover .tool-icon-logo{ background-color: var(--white); }
.tool-name{ font-size: 11.5px; color: var(--ash); transition: color .2s ease; }
.tool-tile:hover .tool-name{ color: var(--white); }

/* ---------- hero cutout portrait ---------- */
.hero-cutout-wrap{
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  transform: translateY(clamp(20px, 4vh, 60px));
}
.hero-cutout{
  position: relative; z-index: 1;
  width: auto; max-width: 100%; max-height: clamp(280px, 64vh, 680px); display: block;
  image-rendering: auto; image-rendering: high-quality;
  mask-image: linear-gradient(to bottom, black 0%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 86%, transparent 100%);
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%;
  mask-position: top; -webkit-mask-position: top;
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .about-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: 1fr; }
  .floating-card{ right: var(--s2); bottom: var(--s2); width: calc(100vw - 32px); }
  .footer-grid{ grid-template-columns: 1fr; gap: var(--s3); }
  .hero-cutout-wrap{ min-height: 0; margin-top: var(--s3); order: -1; transform: none; }
  .hero-cutout{ max-height: clamp(220px, 42vh, 380px); }
}
@media (max-width: 520px){
  .process-grid{ grid-template-columns: 1fr; }
}

/* ---------- phone layer ----------
   Tightens the spacing scale, drops body type to a comfortable reading size,
   and stops .section-wrap from double-padding inside .section (which was
   costing ~120px of a 375px screen). */
@media (max-width: 760px){
  :root{
    --s3: 22px;
    --s4: 26px;
    --s5: 58px;
    --s6: 74px;
  }

  /* .section already pads the sides; the wrap inside must not pad again */
  .section > .section-wrap,
  .hero > .section-wrap{ padding-left: 0; padding-right: 0; }

  /* readable body type */
  .hero-sub{ font-size: 17px; line-height: 1.62; }
  .section-intro{ font-size: 17px; line-height: 1.62; margin-top: -12px; }
  .about-body{ font-size: 16px; }
  .eyebrow, .sec-eyebrow{ font-size: 13px; margin-bottom: var(--s2); }

  /* headings: let them breathe without dominating the screen */
  .hero-headline{ font-size: clamp(34px, 10.5vw, 52px); line-height: 1.04; }
  .sec-title, .section-title, .work-cat-title{ font-size: clamp(24px, 6.6vw, 32px); line-height: 1.15; }

  /* comfortable tap targets */
  .btn, .pill-link{ min-height: 46px; }

  /* Double Diamond: scale with the screen instead of a fixed 220px */
  .dd-wrap{ width: 100%; max-width: 380px; margin-inline: auto; }
  .dd-hint{ font-size: 12px; }

  /* skills board: notes fill the column instead of sitting at a fixed width */
  .postit-board{ gap: var(--s3); min-height: 0; }
  /* Flatten the notes: a rotated card overflows a narrow column. Set transform
     directly rather than via --tilt — a custom property inside transform does
     not reliably re-resolve while a transform transition is attached. */
  .postit,
  .postit:nth-child(6n+1), .postit:nth-child(6n+2), .postit:nth-child(6n+3),
  .postit:nth-child(6n+4), .postit:nth-child(6n+5), .postit:nth-child(6n){
    --tilt: 0deg;
    transform: none;
  }
  .postit{ width: 100%; min-height: 0; padding: 22px var(--s3) var(--s3); }

  /* tools: tighter grid so 15 icons don't run 800px tall */
  .tools-wrap{ margin-top: var(--s4); }
  .tools-grid{ grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: var(--s3) var(--s2); }
  .tool-icon{ width: 48px; height: 48px; border-radius: 13px; }
  .tool-name{ font-size: 11px; }

  /* carousel: one card per view, swipeable */
  .carousel-card{ width: min(78vw, 300px); }
}

@media (max-width: 420px){
  :root{ --s4: 20px; --s5: 48px; --s6: 60px; }
  .tools-grid{ grid-template-columns: repeat(4, 1fr); }
  .carousel-card{ width: 82vw; }
}
