/* ==========================================================================
   Dark gallery — the homepage and the Obtura page (October 2026 design).
   Loaded after site.css, which supplies the fonts, tokens, reset and the
   skip link. Photographs lead; red stays a mark (eyebrows, numbers, settings,
   one outline), never a fill.
   ========================================================================== */

.gallery {
  --g-gutter: clamp(16px, 5vw, 64px);
  --g-body: rgb(235 235 240 / .72);
  --g-soft: rgb(235 235 240 / .66);
  --g-nav: rgb(235 235 240 / .80);
  --g-photo-radius: 14px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
}

.gallery a { color: #FF8A75; }
.gallery a:hover { color: var(--ink); }

.g-wrap {
  max-width: var(--col-max);
  margin-inline: auto;
  padding-inline: var(--g-gutter);
}

.g-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.g-eyebrow {
  margin: 0;
  font: 400 13px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.g-label {
  margin: 0;
  font: 400 12px/1.4 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g-soft);
}

.g-settings {
  font: 400 13px/1.5 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}

.g-h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--ink);
}

.g-lead {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgb(235 235 240 / .84);
}

.g-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--g-soft);
}

.g-section { padding-block: clamp(64px, 9vw, 120px) 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.g-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 12px;
}
.g-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  max-width: none;
  background: linear-gradient(180deg, rgb(10 10 11 / .6), rgb(10 10 11 / 0));
}
.g-home { display: flex; align-items: center; min-height: 44px; }
.g-home img { width: 128px; height: 26px; mix-blend-mode: lighten; }

.g-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 15px; }
.gallery .g-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--g-nav); }
.gallery .g-nav a:hover, .gallery .g-nav a[aria-current="page"] { color: var(--ink); }
.gallery .g-nav .g-lang { font: 400 13px/1 var(--font-mono); min-width: 44px; justify-content: center; border: 1px solid var(--hairline); border-radius: 8px; min-height: 36px; }
@media (max-width: 860px) { .g-nav { gap: 0 16px; } } /* keeps the pill beside the menu at tablet width since Tribs joined it */

.g-pill,
.gallery a.g-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.3;
  background: var(--ink);
  color: var(--ground);
  font-size: 15px;
  font-weight: 600;
}
.gallery a.g-pill:hover { background: #FFFFFF; color: var(--ground); }
.gallery .g-nav a.g-pill { color: var(--ground); min-height: 40px; padding: 0 18px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Homepage hero — the photograph is the page. Text right, caption bottom left.
   -------------------------------------------------------------------------- */

.g-hero {
  position: relative;
  min-height: max(640px, 92vh);
  max-height: 960px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ground);
}
.g-hero__photo,
.g-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.g-hero__photo img { object-fit: cover; object-position: 38% 35%; }
/* The side scrim is measured from the copy column, not from the photo width,
   so the words keep 4.5:1 at every desktop width. --g-copy-edge is the
   distance from the right edge of the window to the left edge of the copy. */
.g-hero::after {
  --g-copy-edge: calc(max((100vw - var(--col-max)) / 2, 0px) + var(--g-gutter) + 600px);
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(10 10 11 / .55) 0%, rgb(10 10 11 / 0) 22%, rgb(10 10 11 / 0) 45%, rgb(10 10 11 / .7) 75%, rgb(10 10 11 / .94) 100%),
    linear-gradient(270deg, rgb(10 10 11 / .9) 0, rgb(10 10 11 / .86) calc(var(--g-copy-edge) + 32px), rgb(10 10 11 / 0) calc(var(--g-copy-edge) + 280px));
}
.g-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col-max);
  margin-inline: auto;
  padding: 120px var(--g-gutter) 64px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.g-hero__copy { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.g-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--ink);
}
.g-hero__caption {
  margin: 0;
  flex: 0 1 auto;
  font: 400 12px/1.6 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 1px 8px rgb(0 0 0 / .8);
}

.g-get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.g-get .app-store-download { margin: 0; }
.g-get .badge { height: 52px; }
.g-get span { font-size: 15px; color: rgb(235 235 240 / .82); }

/* Phones: the photograph sits above the words instead of under them, so
   every line of copy is on the plain ground and nothing is wider than 320. */
@media (max-width: 760px) {
  .g-header--overlay { position: static; background: none; }
  .g-hero { display: block; min-height: 0; max-height: none; }
  .g-hero::after { content: none; }
  .g-hero__photo { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; }
  .g-hero__photo::after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(180deg, rgb(10 10 11 / 0), rgb(10 10 11 / .7) 60%, rgb(10 10 11 / .92));
  }
  .g-hero__photo img { object-position: 30% 40%; }
  .g-hero__inner { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; padding: 0 var(--g-gutter); }
  .g-hero__caption { position: relative; margin-top: -76px; margin-bottom: 28px; font-size: 11px; z-index: 1; }
  .g-hero__copy { gap: 16px; padding-top: 8px; }
}

/* --------------------------------------------------------------------------
   Photographs with their settings
   -------------------------------------------------------------------------- */

.g-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 48px;
}
.g-head .g-h2 { max-width: 620px; }
.g-head p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.55; color: var(--g-body); }

.g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.g-grid--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.g-photo { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.g-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--g-photo-radius);
  background: var(--raised);
}
.g-grid--four .g-photo img { height: 300px; }
.g-photo figcaption { display: flex; flex-direction: column; gap: 6px; }
.g-photo__intent { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.g-photo__note { font-size: 15px; line-height: 1.5; color: var(--g-body); }
.g-pos-mustang { object-position: 40% 50%; }
.g-pos-rock { object-position: 38% 50%; }
.g-pos-vertical { object-position: 50% 62%; }

@media (max-width: 760px) {
  .g-photo img, .g-grid--four .g-photo img { height: auto; aspect-ratio: 3 / 2; }
}

/* --------------------------------------------------------------------------
   Built like a light meter — the two real screens
   -------------------------------------------------------------------------- */

.g-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  background: var(--raised);
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: var(--r-tile);
  padding: clamp(24px, 5vw, 64px);
}
.g-screens { flex: 1 1 260px; display: flex; justify-content: center; gap: 20px; min-width: 0; }
.g-screens picture { flex: 0 1 220px; min-width: 0; }
.g-screens picture:nth-child(2) { margin-top: 48px; }
.g-screen {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgb(255 255 255 / .12);
}
.g-panel__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.g-panel__copy .g-h2 { font-size: clamp(28px, 3.6vw, 44px); }
.g-panel__copy > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--g-body); }

.g-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.g-steps li { display: flex; gap: 18px; }
.g-steps .g-num { font: 400 14px/1 var(--font-mono); color: var(--accent-text); padding-top: 5px; }
.g-steps strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.g-steps span span { font-size: 16px; line-height: 1.5; color: var(--g-body); }

@media (max-width: 400px) {
  .g-panel { gap: 36px; }
  .g-screens { gap: 12px; }
  .g-screen { border-radius: 18px; }
  .g-screens picture:nth-child(2) { margin-top: 28px; }
}

/* --------------------------------------------------------------------------
   Guide cards
   -------------------------------------------------------------------------- */

.g-head--tight { align-items: baseline; margin-bottom: 32px; }
.g-head--tight .g-h2 { font-size: clamp(28px, 3vw, 36px); }
.g-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

.gallery a.g-guide { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.g-guide img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--g-photo-radius); background: var(--raised); }
.g-guide__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.gallery a.g-guide:hover .g-guide__title { color: #FF8A75; }

.g-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  overflow: hidden;
}
.g-feature picture { flex: 1 1 320px; min-width: 0; }
.g-feature img { width: 100%; height: 300px; object-fit: cover; }
.g-feature__copy { flex: 1 1 320px; min-width: 0; padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.g-feature__copy h2, .g-feature__copy h3 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.g-feature__copy a { font-size: 16px; display: inline-flex; min-height: 44px; align-items: center; }
.g-more-guides { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 32px; }
.g-more-guides a { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; }

/* --------------------------------------------------------------------------
   More from Nesia, studio, footer
   -------------------------------------------------------------------------- */

.g-rule { border-top: 1px solid var(--hairline); margin-top: clamp(64px, 9vw, 100px); }
.g-rule > .g-wrap { padding-block: 72px; display: flex; flex-direction: column; gap: 32px; }
.g-rule .g-label { font-size: 15px; letter-spacing: .14em; font-weight: 500; }
.g-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.g-app { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.g-app__head { display: flex; align-items: center; gap: 12px; }
.g-app__head img { width: 36px; height: 36px; border-radius: 9px; }
.g-app h3 { margin: 0; font-size: 20px; color: var(--ink); }
.gallery .g-app h3 a { color: var(--ink); }
.g-app p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--g-body); }
.g-app .g-status { font: 400 12px/1.5 var(--font-mono); color: var(--g-soft); }
.g-app__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.g-app__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.g-app__links .badge { height: 40px; } /* Tribs card: Apple's onscreen minimum */

.g-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: start; }
.g-studio h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.g-studio p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--g-body); }
.g-studio a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 760px) { .g-studio { grid-template-columns: minmax(0, 1fr); } }

.g-footer { border-top: 1px solid var(--hairline); }
.g-footer > .g-wrap {
  padding-block: 40px 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--g-soft);
}
.g-footer__about { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.g-footer__about img { width: 98px; height: 20px; mix-blend-mode: lighten; }
.g-footer__about p { margin: 0; }
.g-footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 24px; }
.gallery .g-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--g-nav); }
.gallery .g-footer nav a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Obtura page
   -------------------------------------------------------------------------- */

.g-product { padding-block: 48px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.g-product__copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.g-product__copy h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 1.03; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.g-product__copy .g-lead { max-width: 560px; }
.g-product__mark { display: flex; align-items: center; gap: 12px; }
.g-product__mark img { width: 36px; height: 36px; }
.g-product__fine { margin: 0; font-size: 13px; color: var(--g-soft); }
.g-product__shot { flex: 1 1 260px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.g-product__shot figcaption { max-width: 300px; font-size: 13px; line-height: 1.5; color: var(--g-soft); text-align: center; }
.g-product__shot picture { width: 300px; max-width: 100%; }
.g-product__shot img { width: 100%; height: auto; border-radius: 36px; border: 1px solid rgb(255 255 255 / .14); }

.g-band { background: var(--raised); border-block: 1px solid rgb(255 255 255 / .08); }
.g-band > .g-wrap { padding-block: clamp(64px, 9vw, 96px); }
.g-band .g-h2 { margin-bottom: 12px; }
.g-band .g-intro { margin: 0 0 48px; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--g-body); }

.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.g-card { border: 1px solid var(--hairline); border-radius: var(--r-tile); padding: clamp(24px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.g-card h3 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.g-card ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: rgb(235 235 240 / .8); }
.g-card .g-eyebrow { font-size: 12px; }
.g-card--pro { border: 2px solid var(--accent); }
.g-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.g-card__name { font-size: 22px; font-weight: 600; color: var(--ink); }
.g-card__price { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-card__per { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--g-body); }
.g-card__sub { font-size: 17px; line-height: 1.5; color: var(--g-body); margin: 0; }
.g-card .g-pill { align-self: flex-start; }

.g-private { margin-top: 24px; background: var(--raised); border-radius: var(--r-tile); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.g-private strong { font-size: 18px; color: var(--ink); }
.g-private span { font-size: 16px; line-height: 1.5; color: rgb(235 235 240 / .78); }
.gallery .g-private a { display: inline-flex; min-height: 44px; align-items: center; }

.g-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin: 40px 0 0; }
.g-facts div { border-top: 1px solid var(--hairline); padding-top: 20px; }
.g-facts dt { margin-bottom: 10px; font: 400 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.g-facts dd { margin: 0; font-size: 16px; line-height: 1.6; color: rgb(235 235 240 / .8); }
.g-facts dd p { margin: 0 0 10px; }

.g-divided { border-top: 1px solid rgb(255 255 255 / .08); margin-top: clamp(64px, 9vw, 104px); }
.g-divided > .g-wrap { padding-block: clamp(64px, 9vw, 96px) 0; }
.g-cards--spaced { margin-top: 40px; }
