/* Nick Santos portfolio
   Map: Home (statement + categories) → Category grid → Project page.
   Palette: ochre ground with a woven paper texture, sky blue display headings, dark ink text. */
:root {
  --paper:  #BFAC45;   /* ochre / mustard background */
  --paper-2:#B09D3A;   /* deeper ochre for image wells */
  --ink:    #132441;   /* navy for all text */
  --muted:  #2C3D63;   /* lighter navy for secondary text */
  --line:   #9C8B34;   /* hairlines */
  --blue:   #132441;   /* headings match body navy */
  --pink:   #132441;   /* no separate accent */

  --serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn .4s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* ── Buttons (the whole site's navigation) ─────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--small { font-size: 11px; padding: 8px 14px; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Fixed corner button, like a sticky note */
.inquiries {
  position: fixed;
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}

/* ── Home ──────────────────────────────────────────────── */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--pad) 120px;
  gap: 28px;
}
.home__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 128px);
  line-height: .9;
  letter-spacing: -.02em;
}
.home__name em { color: var(--pink); }
.home__statement {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.home__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 4px; }

.footer {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ── Top bar on inner pages ─────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: var(--pad);
  padding-bottom: 0;
}

/* ── Category grid ─────────────────────────────────────── */
.cat-head { padding: 40px var(--pad) 28px; }
.cat-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -.02em;
}
.cat-head h1 em { color: var(--pink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--pad) 120px;
}
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.03); }
.tile__title {
  text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tile__title span { display: block; font-weight: 500; letter-spacing: .08em; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tile:hover .tile__title { color: var(--pink); }

/* ── Project page ──────────────────────────────────────── */
.proj { padding: 40px var(--pad) 120px; display: grid; gap: clamp(28px, 4vw, 48px); }
.proj__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.proj__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: -.02em;
}
.proj__title em { color: var(--pink); }
.proj__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.proj__text { max-width: 58ch; font-size: 17px; line-height: 1.7; }
.proj__text p + p { margin-top: 1em; }

.stack { display: grid; gap: clamp(16px, 2vw, 28px); }
.stack img { width: 100%; height: auto; }
.stack--center img { max-width: 1100px; margin-inline: auto; }
.stack--narrow img { max-width: 760px; margin-inline: auto; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.trio { display: grid; grid-template-columns: .75fr 1.3fr 1.3fr; gap: clamp(16px, 2vw, 28px); align-items: start; }

.proj__next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── Inquiries ─────────────────────────────────────────── */
.inq { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px var(--pad) 120px; align-items: start; }
.inq h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 110px); line-height: .92; letter-spacing: -.02em; }
.inq h1 em { color: var(--pink); }
.inq__body { display: grid; gap: 28px; max-width: 520px; }
.inq__body p { font-size: 17px; line-height: 1.7; }
.inq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.inq__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inq__key { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.inq__val { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.inq__val a { border-bottom: 1.5px solid var(--pink); }
.inq__val a:hover { color: var(--pink); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj__head, .inq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid, .pair, .trio { grid-template-columns: minmax(0, 1fr); }
  .inq__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Helvetica Neue headings: bold, tight, italics for emphasis instead of color */
html { color-scheme: light; }
.home__name, .cat-head h1, .proj__title, .inq h1 { font-weight: 700; letter-spacing: -0.045em; line-height: .92; }
/* No italics anywhere: every word in a heading matches */
em, i { font-style: normal; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.tile:hover .tile__title { color: var(--muted); }
.inq__val a { border-bottom-color: var(--muted); }
.inq__val a:hover { color: var(--muted); }

/* Fabric / paper texture: woven streaks plus fine grain, multiplied over the ochre */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.011 0.55' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><filter id='v'><feTurbulence type='fractalNoise' baseFrequency='0.5 0.012' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='11' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23w)' opacity='0.55'/><rect width='100%' height='100%' filter='url(%23v)' opacity='0.35'/><rect width='100%' height='100%' filter='url(%23g)' opacity='0.6'/></svg>");
  background-size: 360px 360px;
  mix-blend-mode: multiply;
  opacity: .32;
}
/* Big display headings in sky blue, like the OASE cover */
.home__name, .cat-head h1, .proj__title, .inq h1 { color: var(--blue); }
.btn--solid { color: var(--paper); }
.home__name em, .cat-head h1 em, .proj__title em, .inq h1 em { color: var(--blue); }
.home__statement { line-height: 1.38; letter-spacing: -0.015em; }
.proj__text, .inq__body p, .inq__val { line-height: 1.38; letter-spacing: -0.015em; }

/* Smaller layouts for print pieces and low-res originals */
.pair--small { max-width: 900px; width: 100%; margin-inline: auto; }
.pair--tiny { max-width: 600px; width: 100%; margin-inline: auto; }
.stack--small img { max-width: 520px; margin-inline: auto; }
.pair img { width: 100%; height: auto; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1100px; width: 100%; margin-inline: auto; }
.four img, .three img { width: 100%; height: auto; }
@media (max-width: 900px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .three { grid-template-columns: minmax(0, 1fr); } }

/* Case study sections (Gideon) */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 1100px; width: 100%; margin-inline: auto; }
.case__n { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case__h { grid-column: 1; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; color: var(--ink); }
.case__p { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; line-height: 1.38; letter-spacing: -0.015em; max-width: 60ch; }
.case__p p + p { margin-top: 1em; }
img.shot { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(19,36,65,.12); }
.four img.shot { border-radius: 18px; }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); } .case__p { grid-column: 1; grid-row: auto; } }
