*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* surfaces */
  --bg:      #08090a;
  --bg2:     #0d0e10;
  --bg3:     #131416;
  --bg4:     #1a1c1e;

  /* ink */
  --ink:     #eae6de;
  --ink2:    #a8a49b;
  --dim:     #5f5c55;
  --dim2:    #232421;

  /* lines */
  --line:    rgba(234,230,222,0.07);
  --line2:   rgba(234,230,222,0.13);

  /* brand accent — editorial gold */
  --gold:    #00ff88;
  --gold-l:  #5effb4;
  /* --gold:    #c6a24e;
  --gold-l:  #dfc077; */
  --gold2:   rgba(198,162,78,0.1);

  /* dev accent — terminal mint, used sparingly for "system" states */
  --mint:    #4ade80;
  --mint2:   rgba(74,222,128,0.12);

  /* macOS-style chrome dots */
  --dot-r:   #ff5f57;
  --dot-y:   #febc2e;
  --dot-g:   #28c840;

  --font-d:    'Bebas Neue', sans-serif;
  --font-p:    'Playfair Display', serif;
  --font-sc:   'Cormorant Garamond', serif;
  --font-m:    'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sc);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--mint); color: #04140a; }

a { color: inherit; }
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* NOISE GRAIN */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 999; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* SCROLL PROGRESS */
#bar { position: fixed; top: 0; left: 0; height: 1px; z-index: 9997; background: var(--gold); width: 0; }

#header { position: relative; z-index: 100; }
#footer { position: relative; z-index: 2; }

/* =========================================================
   HERO
========================================================= */
#hero {
  position: relative; overflow: hidden;
  height: 100svh; min-height: 680px;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(.2) brightness(.3) contrast(1.12) saturate(.85);
  transform: scale(1.05);
  animation: hz 20s ease forwards;
}
@keyframes hz { to { transform: scale(1); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(8,9,10,.92) 0%, rgba(8,9,10,.32) 5%, transparent 80%),
    linear-gradient(to top, rgba(8,9,10,.98) 0%, rgba(8,9,10,.15) 8%, transparent 40%);
}

/* EXIF corner tag — dev + camera metadata fused */
.h-exif {
  position: absolute; top: 2.4rem; right: 2.6rem; z-index: 3;
  font-family: var(--font-m); font-size: .38rem; letter-spacing: .32em;
  color: var(--dim); text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed;
}

.hero-inner { position: relative; z-index: 2; padding: 0 8rem 6rem; }

.h-eye { margin-bottom: 2rem; opacity: 0; animation: fu .6s ease .05s forwards; }
.term-prompt {
  display: inline-flex; align-items: baseline; gap: .35em;
  font-family: var(--font-m); font-size: .5rem;
  letter-spacing: .06em; text-transform: none;
}
.tp-user { color: var(--mint); }
.tp-sep  { color: var(--dim); }
.tp-cmd  { color: var(--gold-l); letter-spacing: .06em; }
.tp-cursor {
  color: var(--gold); font-size: .85em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.h-title {
  font-family: var(--font-d);
  font-size: clamp(5.5rem, 13vw, 16rem);
  line-height: .82; letter-spacing: .01em; color: var(--ink);
  margin-bottom: 2.4rem;
  opacity: 0; animation: fu .95s ease .18s forwards;
}
.h-lead {
  font-family: var(--font-sc); font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6; color: var(--dim);
  margin-bottom: 3rem;
  opacity: 0; animation: fu .7s ease .35s forwards;
}
.h-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fu .7s ease .5s forwards;
}

.btn-gold {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-m); font-size: .48rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: #100b02; background: var(--gold);
  padding: 1rem 2.4rem; position: relative; overflow: hidden;
  transition: box-shadow .35s, transform .3s;
  white-space: nowrap; border: 1px solid var(--gold);
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-l);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.77,0,.175,1);
}
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold:hover::before { transform: scaleX(1); }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(198,162,78,.3); transform: translateY(-2px); }
.btn-gold svg { width: 13px; height: 13px; transition: transform .3s; flex-shrink: 0; }
.btn-gold:hover svg { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--font-m); font-size: .42rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink2); background: transparent;
  padding: .85rem 1.8rem; border: 1px solid var(--line2);
  transition: border-color .3s, color .3s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }

.h-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  opacity: 0; animation: fu .6s ease 1.1s forwards;
}
.scroll-bar { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); animation: sb 2.2s ease-in-out infinite; }
@keyframes sb { 0%,100%{opacity:.35;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }
.scroll-txt { font-family: var(--font-m); font-size: .38rem; letter-spacing: .38em; text-transform: uppercase; color: var(--dim); }

/* =========================================================
   TICKER
========================================================= */
#ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg2); display: flex; align-items: center;
}
.tk-live {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-m); font-size: .4rem; letter-spacing: .3em;
  color: var(--mint); padding: .65rem 1.4rem; border-right: 1px solid var(--line);
}
.tk-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.tk-track { flex: 1; overflow: hidden; padding: .65rem 0; }
.ticker-t { display: flex; width: max-content; animation: tk 28s linear infinite; }
#ticker:hover .ticker-t { animation-play-state: paused; }
@keyframes tk { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tk-item {
  display: inline-flex; align-items: center; gap: 1.4rem; padding: 0 2.8rem;
  font-family: var(--font-m); font-size: .44rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.tk-item em { color: var(--gold); font-style: normal; }
.tk-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .5; flex-shrink: 0; }

/* =========================================================
   FILTER / TERMINAL BAR
========================================================= */
#fbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(8,9,10,.97); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.term-chrome {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem 8rem;
  background: var(--bg3); border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: var(--dot-r); }
.dot-y { background: var(--dot-y); }
.dot-g { background: var(--dot-g); }
.term-path {
  margin-left: .6rem;
  font-family: var(--font-m); font-size: .4rem; letter-spacing: .16em;
  color: var(--dim); text-transform: lowercase;
}
.term-body {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0 8rem;
}
.term-inline-prompt {
  flex-shrink: 0;
  font-family: var(--font-m); font-size: .44rem; letter-spacing: .1em;
  color: var(--mint); padding: 1.15rem 0;
}
.ftabs { display: flex; overflow-x: auto; flex: 1; }
.ftab {
  font-family: var(--font-m); font-size: .46rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--dim);
  padding: 1.15rem 1.4rem; background: none; border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer; transition: color .22s, border-color .22s;
  white-space: nowrap; margin-bottom: -1px;
}
.ftab:hover { color: var(--ink2); }
.ftab.on { color: var(--gold); border-bottom-color: var(--gold); }
.fc {
  flex-shrink: 0;
  font-family: var(--font-m); font-size: .44rem;
  letter-spacing: .28em; color: var(--dim); text-transform: uppercase; white-space: nowrap;
}
.fc strong { color: var(--gold); font-weight: 400; }

/* =========================================================
   GRID — UNIFORM CARDS
========================================================= */
#grid-section { padding: 0 8rem 9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line); border-top: none;
}

.card {
  position: relative; overflow: hidden;
  background: var(--bg2);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease, background .3s;
}
.card.in { opacity: 1; transform: translateY(0); }
.card.hidden { display: none !important; }
.card:hover { background: var(--bg3); }

.c-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; flex-shrink: 0; background: var(--bg3);
}
.c-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.55) brightness(.52) contrast(1.1) saturate(.9);
  transform: scale(1.07);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .85s ease;
}
.card:hover .c-img img {
  transform: scale(1);
  filter: grayscale(.05) brightness(.76) contrast(1.04) saturate(1.1);
}
.c-img .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: .42rem; letter-spacing: .2em; color: var(--dim2); font-style: italic;
}

.c-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(8,9,10,.85) 100%);
  opacity: 0; transition: opacity .6s;
}
.card:hover .c-grad { opacity: 1; }

/* Category tag — styled like a git/npm status flag */
.c-badge {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3;
  font-family: var(--font-m); font-size: .38rem;
  letter-spacing: .18em; text-transform: lowercase;
  color: var(--mint); background: rgba(8,9,10,.72);
  border: 1px solid rgba(74,222,128,.25);
  padding: .24rem .6rem; backdrop-filter: blur(8px);
}
.c-badge::before { content: '['; color: var(--dim); margin-right: .15em; }
.c-badge::after  { content: ']'; color: var(--dim); margin-left: .15em; }

.c-frames {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 3;
  font-family: var(--font-m); font-size: .38rem; letter-spacing: .16em;
  color: rgba(234,230,222,.65);
  opacity: 0; transform: translateY(5px);
  transition: opacity .4s, transform .4s;
}
.card:hover .c-frames { opacity: 1; transform: translateY(0); }

.c-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }
.c-btn {
  font-family: var(--font-m); font-size: .38rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink2); background: transparent;
  padding: .5rem 1rem; border: 1px solid var(--line2);
  transition: border-color .3s, color .3s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.c-btn:hover { color: var(--ink); border-color: var(--gold); }
.c-btn svg { width: 11px; height: 11px; flex-shrink: 0; }

.c-body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; gap: .5rem; flex: 1;
  border-top: 1px solid var(--line);
  transition: border-color .35s;
}
.card:hover .c-body { border-top-color: rgba(198,162,78,.2); }

.c-title {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 1.7vw, 1.75rem);
  letter-spacing: .04em; color: var(--ink); line-height: 1.05;
  transition: color .3s;
}
.card:hover .c-title { color: var(--gold); }

/* EXIF-style metadata line — replaces plain meta row */
.c-exif {
  font-family: var(--font-m); font-size: .4rem;
  letter-spacing: .12em; color: var(--dim); text-transform: none;
}
.c-exif::before { content: '// '; color: var(--dim2); }

.c-desc {
  font-family: var(--font-sc); font-size: .86rem; font-style: italic;
  line-height: 1.7; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-top: .15rem;
}

.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-l));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s cubic-bezier(.77,0,.175,1); z-index: 5;
}
.card:hover::before { transform: scaleY(1); }

/* =========================================================
   HIRE SECTION
========================================================= */
#hire { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }

.hire-l { padding: 8rem; border-right: 1px solid var(--line); }
.hire-eyebrow {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.5rem;
  font-family: var(--font-m); font-size: .46rem;
  letter-spacing: .44em; color: var(--gold); text-transform: uppercase;
}
.hire-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); display: block; flex-shrink: 0; }

.hire-heading {
  font-family: var(--font-p); font-style: italic;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  color: var(--ink); line-height: 1.3; margin-bottom: 3rem;
}
.hire-heading em { color: var(--gold-l); font-style: normal; }

.svc-list { border-top: 1px solid var(--line); margin-bottom: 3.5rem; }
.svc {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-sc); font-size: 1rem;
  color: var(--ink2); transition: color .3s, padding-left .3s;
}
.svc:hover { color: var(--ink); padding-left: .5rem; }
.svc-arr { font-family: var(--font-m); font-size: .6rem; color: var(--gold); transition: transform .3s; }
.svc:hover .svc-arr { transform: translateX(4px); }

.hire-r { padding: 8rem; background: var(--bg2); display: flex; flex-direction: column; gap: 3rem; }

.avail {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-m); font-size: .44rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--mint); border: 1px solid rgba(74,222,128,.2);
  padding: .45rem 1.1rem; align-self: flex-start;
}
.avail-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

.hire-quote {
  font-family: var(--font-p); font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--ink2); line-height: 1.75;
  border-left: 2px solid var(--gold); padding-left: 2rem;
}

/* Contact info styled as a formatted JSON object — dev + professional fusion */
.json-block {
  font-family: var(--font-m); font-size: .78rem; line-height: 1.9;
  background: var(--bg3); border: 1px solid var(--line);
  padding: 1.6rem 1.8rem;
}
.jb-line { white-space: pre; }
.jb-indent { padding-left: 1.4em; }
.jb-brace { color: var(--dim); }
.jb-key   { color: var(--gold-l); }
.jb-colon { color: var(--dim); }
.jb-str   { color: var(--ink2); }
.jb-comma { color: var(--dim); }
.jb-mint  { color: var(--mint); }

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fu { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1280px) {
  .hero-inner { padding: 0 5rem 5rem; }
  #grid-section { padding: 0 5rem 7rem; }
  .term-chrome, .term-body { padding-left: 5rem; padding-right: 5rem; }
  .hire-l, .hire-r { padding: 5rem; }
}
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  #hire { grid-template-columns: 1fr; }
  .hire-l { border-right: none; border-bottom: 1px solid var(--line); }
  .h-exif { display: none; }
}
@media (max-width: 768px) {
  .hero-inner { padding: 0 2.5rem 4rem; }
  .term-chrome, .term-body { padding-left: 2.5rem; padding-right: 2.5rem; }
  #grid-section { padding: 0 2.5rem 5rem; }
  .hire-l, .hire-r { padding: 4rem 2.5rem; }
  .h-actions { flex-direction: column; align-items: flex-start; }
  .term-inline-prompt { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 0 1.5rem 3.5rem; }
  .term-chrome, .term-body { padding-left: 1.5rem; padding-right: 1.5rem; }
  #grid-section { padding: 0 1.5rem 4rem; }
  .hire-l, .hire-r { padding: 3.5rem 1.5rem; }
  .json-block { font-size: .68rem; padding: 1.3rem; }
}

/* Photography portfolio — light editorial direction */
:root {
  --photo-paper: #f7f6f2;
  --photo-white: #fffefa;
  --photo-ink: #1c2925;
  --photo-muted: #68736d;
  --photo-line: #dedfd8;
  --photo-accent: #806344;
  --photo-serif: 'DM Serif Display', Georgia, serif;
  --photo-sans: 'DM Sans', Arial, sans-serif;
  --photo-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--photo-paper);
  color: var(--photo-ink);
  font-family: var(--photo-sans);
  -webkit-font-smoothing: antialiased;
}
body::after { display: none; }
::selection { background: #e9c8b9; color: var(--photo-ink); }
:focus-visible { outline: 2px solid var(--photo-accent); outline-offset: 4px; }
#bar { display: none; }
.skip-link {
  position: fixed;
  z-index: 2000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--photo-white);
  color: var(--photo-ink);
  font-size: .85rem;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

.photo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8.5rem);
  max-width: 1680px;
  min-height: min(760px, calc(100svh - 76px));
  margin: 0 auto;
  padding: clamp(6.5rem, 9vw, 8.5rem) clamp(2rem, 8.5vw, 9rem) clamp(4.5rem, 7vw, 7rem);
  background:
    radial-gradient(ellipse at 9% 12%, rgba(230, 219, 194, .36), transparent 38%),
    var(--photo-paper);
}
.photo-hero-copy { position: relative; z-index: 1; padding-bottom: 1.5rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  color: var(--photo-muted);
  font-family: var(--photo-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow-mark {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--photo-accent);
  flex: 0 0 auto;
}
.photo-hero h1 {
  max-width: 10ch;
  margin: 2rem 0 1.4rem -.04em;
  color: var(--photo-ink);
  font-family: var(--photo-serif);
  font-size: clamp(3.5rem, 6vw, 6.25rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
}
.photo-hero h1 em,
.contact-panel h2 em { color: var(--photo-accent); font-weight: 400; }
.hero-description {
  max-width: 26rem;
  margin: 0;
  color: var(--photo-muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--photo-sans);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1rem; }
.button-dark { background: var(--photo-ink); color: var(--photo-white); }
.button-dark:hover { background: #34463f; }
.text-link {
  color: var(--photo-ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration-color: #b7bcb4;
  text-underline-offset: .35rem;
}
.text-link span { margin-left: .35rem; color: var(--photo-accent); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3.2rem, 6vw, 5.3rem);
}
.note-rule { width: 2rem; height: 1px; background: var(--photo-line); }
.hero-note p {
  margin: 0;
  color: var(--photo-muted);
  font-size: .78rem;
  line-height: 1.7;
}
.hero-note strong { color: var(--photo-ink); font-weight: 600; }
.photo-hero-image {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  margin: 0;
  padding: 2rem 0 2.8rem 2.8rem;
}
.photo-hero-image::before {
  position: absolute;
  top: 0;
  right: 2rem;
  bottom: 0;
  left: 0;
  border: 1px solid #d6d3c7;
  content: "";
}
.photo-hero-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
}
.photo-hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: .1rem;
  left: 2.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--photo-muted);
  font-family: var(--photo-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .025em;
}
.image-index {
  position: absolute;
  z-index: 2;
  top: 3rem;
  left: 1rem;
  color: transparent;
  font-family: var(--photo-serif);
  font-size: 3.8rem;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 254, 250, .85);
}
.hero-side-note {
  position: absolute;
  top: 50%;
  right: 1.3rem;
  color: #8b9188;
  font-family: var(--photo-mono);
  font-size: .58rem;
  letter-spacing: .13em;
  writing-mode: vertical-rl;
}

.portfolio-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.5rem clamp(2rem, 8.5vw, 9rem);
  border-top: 1px solid var(--photo-line);
  border-bottom: 1px solid var(--photo-line);
  background: #f0efe9;
}
.proof-item {
  display: flex;
  min-height: 4.25rem;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  padding: .25rem 1.5rem;
  border-right: 1px solid var(--photo-line);
}
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { padding-right: 0; border-right: 0; }
.proof-value {
  color: var(--photo-ink);
  font-family: var(--photo-serif);
  font-size: 1.55rem;
  line-height: 1.1;
}
.proof-label {
  color: var(--photo-muted);
  font-size: .73rem;
  line-height: 1.45;
}

.work-section {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 7rem) clamp(2rem, 8.5vw, 9rem) clamp(5rem, 8vw, 7rem);
  background: var(--photo-white);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.2rem;
}
.section-heading h2 {
  margin: 1.1rem 0 0;
  font-family: var(--photo-serif);
  font-size: clamp(2.8rem, 4.6vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.section-heading h2 span { color: var(--photo-accent); font-style: italic; }
.section-intro {
  max-width: 25rem;
  margin: 0 0 .3rem;
  color: var(--photo-muted);
  font-size: .95rem;
  line-height: 1.8;
}
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.8rem;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--photo-line);
  border-bottom: 1px solid var(--photo-line);
}
.filter-nav { min-width: 0; }
.ftabs {
  display: flex;
  gap: clamp(.2rem, 1.4vw, 1.35rem);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ftab {
  position: relative;
  min-height: 3.7rem;
  padding: .2rem .25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--photo-muted);
  cursor: pointer;
  font-family: var(--photo-sans);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.ftab:hover,
.ftab[aria-pressed="true"] { color: var(--photo-ink); }
.ftab[aria-pressed="true"] { border-bottom-color: var(--photo-accent); }
.project-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--photo-muted);
  font-family: var(--photo-mono);
  font-size: .68rem;
  white-space: nowrap;
}
.project-count span { color: var(--photo-ink); font-weight: 500; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.8rem 1.5rem;
  border: 0;
  background: transparent;
}
.card {
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  background: transparent;
  transform: none;
  transition: transform .25s ease;
}
.card:hover { background: transparent; transform: translateY(-4px); }
.card::before { display: none; }
.card-image-link { display: block; color: inherit; text-decoration: none; }
.c-img {
  aspect-ratio: 1.32;
  overflow: hidden;
  background: #e9e9e2;
}
.c-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .c-img img { filter: none; transform: scale(1.035); }
.c-badge {
  top: 1rem;
  left: 1rem;
  padding: .4rem .65rem;
  border: 0;
  background: rgba(255, 254, 250, .94);
  color: var(--photo-ink);
  font-family: var(--photo-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.c-badge::before,
.c-badge::after { content: none; }
.c-frames {
  right: 1rem;
  bottom: 1rem;
  padding: .4rem .55rem;
  background: rgba(28, 41, 37, .82);
  color: #fffefa;
  font-family: var(--photo-sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .025em;
  opacity: 1;
  transform: none;
}
.c-body {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1rem 0 0;
  border: 0;
}
.card:hover .c-body { border: 0; }
.c-meta {
  margin: 0;
  color: var(--photo-muted);
  font-family: var(--photo-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .025em;
}
.c-title {
  margin: 0;
  color: var(--photo-ink);
  font-family: var(--photo-serif);
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  transition: color .2s ease;
}
.card:hover .c-title { color: var(--photo-accent); }
.c-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .45rem;
  color: var(--photo-ink);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.c-link span { color: var(--photo-accent); transition: transform .2s ease; }
.c-link:hover span { transform: translate(2px, -2px); }
.card-image-link:focus-visible,
.c-link:focus-visible { outline-offset: 5px; }
.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 0;
  color: var(--photo-muted);
  font-size: .95rem;
}

.contact-panel {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 8.5vw, 9rem) clamp(3.5rem, 7vw, 6rem);
  background: #e9e8df;
}
.contact-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d0d1c8;
}
.contact-location {
  color: var(--photo-muted);
  font-family: var(--photo-sans);
  font-size: .75rem;
  font-weight: 500;
}
.contact-panel-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.contact-panel h2 {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(3rem, 6.5vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
}
.contact-panel h2 em { color: var(--photo-ink); }
.contact-panel-action { max-width: 20rem; }
.contact-panel-action p {
  margin: 0 0 1.4rem;
  color: var(--photo-muted);
  font-size: .95rem;
  line-height: 1.8;
}
.button-light {
  border-color: var(--photo-ink);
  background: transparent;
  color: var(--photo-ink);
}
.button-light:hover { background: var(--photo-ink); color: var(--photo-white); }
#footer .mk-footer { background: var(--photo-ink); }

@media (max-width: 1050px) {
  .photo-hero { gap: 3rem; padding-right: 5rem; padding-left: 5rem; }
  .photo-hero h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
  .photo-hero-image,
  .photo-hero-image img { min-height: 420px; }
  .work-section,
  .contact-panel { padding-right: 5rem; padding-left: 5rem; }
  .portfolio-proof { padding-right: 5rem; padding-left: 5rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.2rem; }
  .hero-side-note { right: 1rem; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .photo-hero { gap: 2rem; padding-right: 3rem; padding-left: 3rem; }
  .photo-hero h1 { font-size: clamp(3rem, 5.4vw, 4.8rem); }
}
@media (max-width: 720px) {
  .photo-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding: 6rem 1.5rem 4rem;
  }
  .photo-hero-copy { padding: 0; }
  .photo-hero h1 { margin-top: 1.5rem; font-size: clamp(3.2rem, 12vw, 4.6rem); }
  .hero-note { margin-top: 2.5rem; }
  .photo-hero-image { min-height: 320px; margin-right: .4rem; padding: 1.1rem 0 2.5rem 1.1rem; }
  .photo-hero-image img { min-height: 320px; }
  .photo-hero-image::before { top: 0; right: 1rem; }
  .photo-hero-image figcaption { left: 1.1rem; font-size: .58rem; }
  .image-index { top: 2rem; left: .3rem; font-size: 3rem; }
  .hero-side-note { display: none; }
  .portfolio-proof { padding: .9rem 1.5rem; }
  .proof-item { min-height: 4rem; gap: .25rem; padding: .2rem .65rem; }
  .proof-value { font-size: 1.3rem; }
  .proof-label { font-size: .65rem; }
  .work-section { padding: 4.5rem 1.5rem 5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; padding-bottom: 2rem; }
  .section-heading h2 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .section-intro { max-width: 32rem; }
  .work-toolbar { align-items: flex-start; flex-direction: column; gap: .4rem; padding: .7rem 0 .6rem; }
  .ftabs { width: calc(100vw - 3rem); gap: 1.1rem; }
  .ftab { min-height: 3rem; font-size: .78rem; }
  .project-count { align-self: flex-end; font-size: .62rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem .85rem; }
  .c-img { aspect-ratio: .95; }
  .c-body { min-height: 7.5rem; gap: .4rem; padding-top: .75rem; }
  .c-badge { top: .55rem; left: .55rem; padding: .3rem .4rem; font-size: .57rem; }
  .c-frames { right: .5rem; bottom: .5rem; padding: .3rem .4rem; font-size: .55rem; }
  .c-meta { font-size: .61rem; }
  .c-title { font-size: 1.15rem; }
  .c-link { font-size: .72rem; }
  .contact-panel { padding: 2rem 1.5rem 3.2rem; }
  .contact-panel-top { align-items: flex-start; flex-direction: column; }
  .contact-location { font-size: .6rem; }
  .contact-panel-main { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .contact-panel h2 { font-size: clamp(3rem, 12vw, 4.8rem); }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; gap: 2rem; }
  .c-img { aspect-ratio: 1.2; }
  .c-body { min-height: 7rem; }
  .c-badge { top: .75rem; left: .75rem; padding: .35rem .5rem; font-size: .61rem; }
  .c-frames { right: .75rem; bottom: .75rem; padding: .35rem .5rem; font-size: .6rem; }
  .c-title { font-size: 1.4rem; }
  .c-link { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}