/* Shared by finleydelouche.com and finleydelouche.net. Marsh palette, one serif family. */
:root {
  --page: #F5F6F3;      /* egret white */
  --ink: #1F2B26;       /* spartina green-black */
  --quiet: #4C6670;     /* slate tide */
  --rule: #D9DDD6;      /* dry marsh grass */
  --gold: #A9852F;      /* late light on the marsh */
  --gold-ink: #7A5E1C;  /* gold dark enough for text on white */
  --scrim: #121A16;     /* lightbox backdrop */
  --measure: 38rem;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); font-size: 1.125rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--page); padding: 6px 10px; z-index: 10; }

/* Top bar */
.bar { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; justify-content: space-between;
  padding: 18px var(--gutter); }
.bar .home { font-size: 1.25rem; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.bar nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; font-size: 1.02rem; }
.bar nav a { text-decoration: none; color: var(--quiet); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

/* Home hero: the photograph at its true shape, the name beside it */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 var(--gutter) 8px; }
.hero figure { margin: 0; min-width: 0; }
/* Slideshow: every slide stacked in one 3:2 frame, the current one faded in */
.show .frames { position: relative; aspect-ratio: 3 / 2; max-height: 86vh; overflow: hidden; background: var(--rule); }
.show .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.show .slide.is-on { opacity: 1; z-index: 1; }
.show img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show .dots { display: flex; gap: 6px; margin-top: 10px; }
.show .dots button { all: unset; cursor: pointer; width: 26px; height: 3px; background: var(--rule); }
.show .dots button[aria-current="true"] { background: var(--gold); }
.show .dots button:hover { background: var(--quiet); }
.show .dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.hero .plate { transition: opacity 0.6s ease; }
.hero .plate.is-changing { opacity: 0; }
.hero .name { grid-column: 1 / -1; font-size: clamp(2.4rem, 9.5vw, 7.5rem); line-height: 1; font-weight: 300; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.hero .tagline { font-size: clamp(1.15rem, 2vw, 1.4rem); font-style: italic; color: var(--quiet); margin: 18px 0 26px; }
.hero .go { list-style: none; padding: 0; margin: 0 0 28px; font-size: 1.3rem; line-height: 1.9; }
.hero .plate { font-size: 0.95rem; color: var(--quiet); max-width: 30rem; border-top: 1px solid var(--rule); padding-top: 12px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); gap: 22px 40px; align-items: end; padding-top: 8px; }
  /* Slideshow top left, the name on one line under it, tagline and links beside both. */
  .hero .show { grid-column: 1; grid-row: 1; }
  .hero .name { grid-column: 1; grid-row: 2; font-size: clamp(3.25rem, 6.4vw, 6.75rem); }
  .hero .side { grid-column: 2; grid-row: 1 / span 2; padding-bottom: 6px; min-width: 0; }
}

/* Sections */
.section { padding: 56px var(--gutter) 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 18px; }
.prose { max-width: var(--measure); }
.more { margin-top: 18px; font-size: 1.1rem; }

/* Justified photo rows */
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; gap: 6px; }
.row button { all: unset; cursor: zoom-in; display: block; background: var(--rule); }
.row button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.row img { width: 100%; height: 100%; object-fit: cover; }

/* Portfolio filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 1.05rem; }
.filters button { all: unset; cursor: pointer; color: var(--quiet); }
.filters button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }
.filters button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.count { color: var(--quiet); font-size: 0.95rem; margin: 0 0 14px; }

/* Lightbox */
dialog.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--scrim); color: #E9ECE6; }
dialog.viewer::backdrop { background: var(--scrim); }
.viewer .frame { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.viewer .pic { display: flex; align-items: center; justify-content: center; padding: 56px 12px 12px; min-height: 0; }
.viewer .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .info { padding: 14px var(--gutter) 22px; overflow-y: auto; max-height: 40vh; background: var(--scrim); }
.viewer .info p { max-width: var(--measure); font-size: 1rem; line-height: 1.55; }
.viewer a { color: #E9ECE6; }
.viewer details { margin: 6px 0 10px; font-size: 0.98rem; }
.viewer summary { cursor: pointer; color: #C9D2CC; }
.viewer dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; margin: 10px 0 0; }
.viewer dt { color: #9FB0A8; }
.viewer dd { margin: 0; }
.viewer .controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.viewer .controls button { font: inherit; font-size: 1rem; color: #E9ECE6; background: rgba(18, 26, 22, 0.7);
  border: 1px solid #3A4A42; padding: 6px 12px; cursor: pointer; }
.viewer .controls button:hover { border-color: var(--gold); }
@media (min-width: 960px) {
  .viewer .frame { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 24rem; }
  .viewer .info { max-height: none; padding-top: 64px; }
  .viewer .pic { padding: 24px; }
}

/* Shared footer */
.foot { margin-top: 72px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--rule); color: var(--quiet); font-size: 1rem; }
.foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.foot h2 { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 1.85; }
.foot .small { margin-top: 28px; font-size: 0.9rem; }

/* .net specifics: text first */
.lead { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4; font-weight: 300; max-width: 34rem; margin: 0 0 8px; }
.big-name { font-size: clamp(3rem, 10vw, 7.5rem); line-height: 0.92; font-weight: 300; letter-spacing: -0.035em; margin: 48px 0 26px; }
.links { list-style: none; padding: 0; margin: 0; font-size: 1.25rem; line-height: 2; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 46rem; margin-bottom: 14px; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .show .slide:first-child img { animation: develop 1.4s ease-out both; }
  @keyframes develop { from { opacity: 0; filter: saturate(0.2); } to { opacity: 1; filter: none; } }
  /* a slow push-in while each photo is on screen */
  .show .slide.is-on img { animation: drift 9s ease-out both; }
  .show .slide:first-child.is-on img { animation: develop 1.4s ease-out both, drift 9s ease-out both; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
}

/* Globe: where the photographs were made */
.places-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .places-grid { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 1fr); gap: 48px; } }
.globe-wrap { position: relative; max-width: 620px; }
.globe svg { width: 100%; height: auto; display: block; cursor: grab; touch-action: pan-y; }
.globe svg:active { cursor: grabbing; }
.g-sphere { fill: #E6EBE6; stroke: var(--rule); stroke-width: 1; }
.g-grat { fill: none; stroke: #D3DAD3; stroke-width: 0.5; }
.g-land { fill: #C9D1C3; stroke: none; }
.g-border { fill: none; stroke: #F5F6F3; stroke-width: 0.6; }
.g-mark { cursor: pointer; outline: none; }
.g-dot { fill: var(--gold); fill-opacity: 0.85; stroke: var(--ink); stroke-width: 1; }
.g-mark:hover .g-dot, .g-mark:focus-visible .g-dot, .g-mark.is-on .g-dot { fill: var(--ink); fill-opacity: 1; stroke: var(--gold); stroke-width: 2; }
.g-label { font-size: 15px; fill: var(--ink); paint-order: stroke; stroke: #E6EBE6; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
/* Photographic Earth (canvas under the SVG markers, added by globe.js once the NASA image loads) */
.globe { position: relative; }
.globe .g-earth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.globe svg { position: relative; }
.globe.is-photo .g-sphere { fill: none; stroke: none; }
.globe.is-photo .g-dot { stroke: #FFFFFF; stroke-width: 1.5; }
.globe.is-photo .g-label { fill: #FFFFFF; stroke: rgba(8, 16, 24, 0.72); stroke-width: 4px; }
.zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.zoom button { font: inherit; font-size: 1.2rem; line-height: 1; width: 36px; height: 36px; background: var(--page); color: var(--ink); border: 1px solid var(--rule); cursor: pointer; }
.zoom button:hover { border-color: var(--gold); }
.hint, .note { color: var(--quiet); font-size: 0.95rem; }
.places { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.places li { border-bottom: 1px solid var(--rule); }
.places button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 2px; font-size: 1.1rem; }
.places button .c { color: var(--quiet); font-variant-numeric: tabular-nums; }
.places button:hover .n, .places button[aria-pressed="true"] .n { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
.places button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.place-panel h3 { font-size: 1.35rem; font-weight: 400; margin: 0 0 4px; }
.place-panel .detail { color: var(--quiet); margin: 0 0 10px; }
.place-panel .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.place-panel .thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.place-note { color: var(--quiet); margin: 0 0 14px; }
.place-note button { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); color: var(--ink); }

/* Model applications page */
.apply { max-width: 44rem; }
.apply fieldset { border: 0; border-top: 1px solid var(--rule); margin: 28px 0 0; padding: 18px 0 0; }
.apply legend { font-size: 1.3rem; font-weight: 400; padding: 0; margin-bottom: 10px; }
.apply .field { display: grid; gap: 4px; margin: 0 0 16px; }
.apply .two { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.apply label { font-size: 1.02rem; }
.apply .req { color: var(--gold-ink); }
.apply .help { color: var(--quiet); font-size: 0.95rem; margin: 0; }
.apply input[type=text], .apply input[type=email], .apply input[type=tel], .apply input[type=url], .apply input[type=date], .apply select, .apply textarea {
  font: inherit; font-size: 1.02rem; color: var(--ink); background: #fff; border: 1px solid #B9C0B6; padding: 9px 10px; width: 100%; box-sizing: border-box; border-radius: 0; }
.apply textarea { min-height: 7rem; resize: vertical; }
.apply input:focus-visible, .apply select:focus-visible, .apply textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.apply .checks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.apply .checks label, .apply .agree label { display: flex; gap: 8px; align-items: flex-start; }
.apply input[type=checkbox], .apply input[type=radio] { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--ink); flex: none; }
.apply .agree { display: grid; gap: 10px; margin: 0 0 18px; }
.apply .upload { display: inline-block; border: 1px dashed var(--quiet); padding: 14px 16px; cursor: pointer; }
.apply .upload input { display: block; margin-top: 6px; }
.apply .thumbs-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.apply .thumbs-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.apply .thumbs-list button { font: inherit; font-size: 0.9rem; width: 100%; margin-top: 4px; background: none; border: 1px solid var(--rule); color: var(--quiet); padding: 4px; cursor: pointer; }
.apply .hp { position: absolute; left: -9999px; }
.apply .send { font: inherit; font-size: 1.1rem; color: var(--page); background: var(--ink); border: 0; padding: 12px 26px; cursor: pointer; }
.apply .send:hover { background: #2E3F37; }
.apply .send:disabled { opacity: 0.6; cursor: progress; }
.apply [data-status] { min-height: 1.5em; margin: 12px 0 0; }
.apply [data-status].error { color: #9B2C1F; }
.apply .sent { font-size: 1.2rem; border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; }