/* Joe Armeni — Director of Photography
   Palette: cool gel-white ground, near-black ink, tungsten accent.
   Type: Archivo (variable width) for everything — display, body and small-caps labels. */

:root {
  --bg: #EDEFEC;
  --surface: #E2E5E1;
  --ink: #111413;
  --muted: #5C6360;
  --rule: #CBD0CC;
  --accent: #A8741F;
  --frame: #0A0C0B;
  --on-frame: #E9EBE8;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0E0D;
    --surface: #151816;
    --ink: #E6E8E4;
    --muted: #8D9490;
    --rule: #252927;
    --accent: #D9A44A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0E0D;
  --surface: #151816;
  --ink: #E6E8E4;
  --muted: #8D9490;
  --rule: #252927;
  --accent: #D9A44A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); }
.masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;                   /* meta's first line sits on the cap line of DIRECTOR OF / JOE */
  gap: 16px 0;
  padding-block: clamp(28px, 4.5vw, 56px) clamp(24px, 3.5vw, 40px);
}
.masthead-name {
  --gap: .06em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "dop joe" "armeni armeni";
  column-gap: var(--gap);
  row-gap: var(--gap);
  justify-self: start;
  margin-left: -.039em;               /* put the ink of the A in ARMENI exactly on the page edge */
  font-family: var(--display);
  font-size: clamp(52px, 11.5vw, 184px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
/* trim each word to its capital letters so the lockup reads as one solid rectangle */
.masthead-name .joe, .masthead-name .armeni, .masthead-name .dop > span {
  text-box: trim-both cap alphabetic;
  width: max-content;
  justify-self: end;
}
.masthead-name .joe { grid-area: joe; font-weight: 800; font-variation-settings: "wdth" 125; }
.masthead-name .armeni { grid-area: armeni; font-weight: 250; font-variation-settings: "wdth" 125; margin-right: -.06em; } /* optically align the I with the E above */
.masthead-name .dop {
  grid-area: dop;
  align-self: stretch;
  display: grid;
  align-content: space-between;     /* top line on JOE's cap line, bottom line on JOE's baseline */
  justify-items: end;
  font-size: .44em;                 /* JS fits each line to the exact width */
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.masthead-name .dop > span { font-variation-settings: "wdth" var(--w, 100); }
.hero-meta {
  justify-self: center;                 /* equal space to the name and to the page edge */
  align-self: stretch;                  /* span the full height of the name block */
  display: flex;
  flex-direction: column;
  justify-content: space-between;       /* location on the cap line, categories on ARMENI's baseline */
  text-align: left;
}
.meta-group { margin: 0; display: grid; gap: .28em; font-size: clamp(16px, 1.65vw, 24px); line-height: 1.1; letter-spacing: .005em; color: var(--ink); }
.meta-group .strong { font-weight: 600; }
.meta-group:first-child > :first-child { text-box: trim-start cap alphabetic; }
.meta-group:last-child > :last-child { text-box: trim-end cap alphabetic; }
.navbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--rule);
}
.nav { display: flex; justify-content: center; gap: 4px 26px; flex-wrap: wrap; padding-block: 14px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--accent); }

/* ---------- Still (frame grab with graceful placeholder) ---------- */
.still {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--tone, var(--surface));
  overflow: hidden;
  isolation: isolate;
}
.still.scope { aspect-ratio: 2.39 / 1; }
.still img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.still::after { /* film grain + soft vignette over placeholders */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.still .slot {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 2;
  color: rgba(255,255,255,.72);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  display: none;
}
.still.is-empty .slot { display: block; }

/* ---------- Hero ---------- */
.hero { padding-block: 0 clamp(40px, 6vw, 88px); }

.hero-meta strong { font-weight: 600; font-size: 15px; letter-spacing: .01em; }

.reel {
  position: relative;
  background: var(--frame);
  color: var(--on-frame);
  padding-block: clamp(14px, 2.4vw, 30px);
}
.reel .still { aspect-ratio: 2.39 / 1; }
.reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.reel-frame { position: relative; }
.frameline { /* camera-monitor corner marks */
  position: absolute; inset: 14px;
  z-index: 3;
  pointer-events: none;
  --c: rgba(255,255,255,.55);
  background:
    linear-gradient(var(--c),var(--c)) top left / 22px 1px,
    linear-gradient(var(--c),var(--c)) top left / 1px 22px,
    linear-gradient(var(--c),var(--c)) top right / 22px 1px,
    linear-gradient(var(--c),var(--c)) top right / 1px 22px,
    linear-gradient(var(--c),var(--c)) bottom left / 22px 1px,
    linear-gradient(var(--c),var(--c)) bottom left / 1px 22px,
    linear-gradient(var(--c),var(--c)) bottom right / 22px 1px,
    linear-gradient(var(--c),var(--c)) bottom right / 1px 22px;
  background-repeat: no-repeat;
}
.frameline::before, .frameline::after { /* center cross */
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--c);
  transform: translate(-50%,-50%);
}
.frameline::before { width: 18px; height: 1px; }
.frameline::after { width: 1px; height: 18px; }
.reel-readout {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-inline: var(--gutter);
  color: rgba(233,235,232,.7);
}
.reel-readout.top { margin-bottom: 12px; }
.reel-readout.bottom { margin-top: 12px; align-items: center; }
.reel-readout .rec::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #E0463A;
  vertical-align: 1px;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .15; } }
.tc { font-variant-numeric: tabular-nums; }
.btn-reel {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-frame);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(233,235,232,.4);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-reel:hover { background: var(--on-frame); color: var(--frame); }
.btn-reel svg { width: 10px; height: 12px; fill: currentColor; }

/* ---------- Section heads ---------- */
.section { padding-block: clamp(48px, 7vw, 104px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 115;
}
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }

/* ---------- Project grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px);
}
.grid.featured > .card:first-child { grid-column: 1 / -1; }
.grid.featured > .card:first-child .still { aspect-ratio: 2.39 / 1; }
.card { display: grid; gap: 14px; align-content: start; }
.card:hover .still img { transform: scale(1.025); }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  flex-wrap: wrap;
}
.card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: .01em;
  line-height: 1.2;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
}
.card-title .sep { color: var(--accent); font-weight: 400; margin-inline: 6px; }
.card-title .cat { font-weight: 400; color: var(--muted); }
.card .client { color: var(--muted); font-size: 14px; }
.grid.featured > .card:first-child .card-title { font-size: clamp(22px, 2.4vw, 32px); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.chip {
  appearance: none;
  font: 500 13px/1 var(--body);
  letter-spacing: .04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 6px; }

/* ---------- Page intros ---------- */
.page-intro { padding-block: clamp(36px, 6vw, 88px) clamp(20px, 3vw, 36px); }
.page-intro h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 120px);
  line-height: .9;
  text-transform: uppercase;
  font-variation-settings: "wdth" 125;
  text-wrap: balance;
}
.lede { max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 0; }

/* ---------- Project page ---------- */
.project-hero .embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--frame);
}
.project-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  padding-block: clamp(32px, 5vw, 64px);
}
.project-body h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: .92;
  text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  text-wrap: balance;
}
.project-body p { margin: 0; max-width: 58ch; font-size: 18px; }
.report { /* camera-report style credits */
  margin: 0;
  border-top: 1px solid var(--ink);
  display: grid;
  align-content: start;
}
.report div {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--rule);
}
.report dt { color: var(--muted); }
.report dd { margin: 0; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.gallery .still:first-child { grid-column: 1 / -1; aspect-ratio: 2.39 / 1; }
.next-project {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.next-project .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  transition: color .2s var(--ease);
}
.next-project:hover .big { color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-grid .still { aspect-ratio: 4 / 5; }
.prose { display: grid; gap: 18px; max-width: 60ch; }
.prose p { margin: 0; font-size: 18px; }
.prose .pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  font-variation-settings: "wdth" 108;
  text-wrap: balance;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 clamp(16px, 3vw, 40px);
}
.services li {
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-block: 16px 22px;
}
.services ul { margin: 0; padding: 0; display: contents; }
.services h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.services p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gear ---------- */
.gear-group { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 12px 40px; border-top: 1px solid var(--ink); padding-block: 16px 36px; }
.gear-group h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-variation-settings: "wdth" 115; }
.gear-list { list-style: none; margin: 0; padding: 0; }
.gear-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, auto);
  gap: 12px;
  align-items: baseline;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
}
.gear-list .qty { font-variant-numeric: tabular-nums; color: var(--accent); }
.gear-list .name { font-weight: 600; font-size: 17px; }
.gear-list .note { color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-lines { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.contact-lines > div { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.contact-lines .value { font-size: 19px; font-weight: 600; word-break: break-word; }
.copy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-ghost {
  appearance: none;
  font: 500 12px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 7px 10px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }
form.brief { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  width: 100%;
  font: 400 16px/1.4 var(--body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color .2s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
select option { background: var(--bg); color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.btn-primary {
  justify-self: start;
  appearance: none;
  font: 600 14px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 26px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.form-status { min-height: 1.5em; margin: 0; font-size: 15px; }

/* ---------- CTA band + footer ---------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 20px 40px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 88px);
  line-height: .92;
  text-transform: uppercase;
  font-variation-settings: "wdth" 122;
  text-wrap: balance;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding-block: 28px 36px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.fade-in { animation: rise .8s var(--ease) both; }
.fade-in.d1 { animation-delay: .08s; }
.fade-in.d2 { animation-delay: .16s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .project-body, .about-grid, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .gear-group { grid-template-columns: minmax(0,1fr); }
  .about-grid .still { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .masthead { grid-template-columns: minmax(0,1fr); }
  .masthead-name { font-size: calc((100vw - 32px) / 4.8); } /* ARMENI spans the full width */
  .hero-meta { justify-self: stretch; flex-direction: row; align-items: start; gap: 16px; text-align: left; }
  .meta-group > * { text-box: none !important; }
  .hero-meta .meta-group:last-child { text-align: right; }
  .meta-group { font-size: 15px; gap: .3em; }
  .grid { grid-template-columns: minmax(0,1fr); }
  .gallery { grid-template-columns: minmax(0,1fr); }
  .field-row { grid-template-columns: minmax(0,1fr); }
  .cta { grid-template-columns: minmax(0,1fr); }
  .gear-list li { grid-template-columns: 36px minmax(0,1fr); }
  .gear-list .note { grid-column: 2; text-align: left; }
  .frameline { inset: 8px; }
  .reel-readout .hide-sm { display: none; }
}
