/* ==========================================================================
   Golog Synchrotech Design System: base + components
   Depends on tokens.css
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--sy-gold); color: var(--sy-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--sy-ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; font-size: var(--text-xs);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--space-section); position: relative; }
.section--paper { background: var(--color-bg-alt); }
.section--dark {
  background: var(--sy-graphite);
  color: var(--sy-on-dark);
  --color-text: var(--sy-on-dark);
  --color-text-muted: var(--sy-on-dark-muted);
  --color-accent: var(--sy-gold);
  --sy-line: var(--sy-line-dark);
  --color-divider: var(--sy-line-dark);
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  overflow-wrap: break-word;
}
.t-hero { font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.02em; }
.t-3xl, h1 { font-size: var(--text-3xl); }
.t-2xl, h2 { font-size: var(--text-2xl); line-height: 1.08; }
.t-xl, h3 { font-size: var(--text-xl); line-height: 1.18; }
.t-sm { font-size: var(--text-sm); }
.muted { color: var(--color-text-muted); }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--color-text-muted); max-width: 40ch; }
em.accent, .accent { font-style: normal; color: var(--color-accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-weight: var(--weight-semibold); font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase;
  color: var(--color-accent); line-height: 1.2;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .7; }

.tagline { font-weight: 700; letter-spacing: var(--tracking-tagline); color: var(--sy-gold); font-size: max(1.0625rem, var(--text-md)); line-height: 1.4; }
.details { text-transform: uppercase; letter-spacing: var(--tracking-details); font-size: var(--text-xs); line-height: 1.8; }
/* "Golog" keeps only its first letter capitalised, so lines that mention it are not forced into caps */
.no-caps { text-transform: none; letter-spacing: 0.02em; }
.label { font-weight: var(--weight-semibold); font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; }
.index-num { color: var(--color-accent); font-size: var(--text-sm); font-weight: 600; }

/* ---------- Buttons (pill; Manrope 600 caps 0.15em) ---------- */
.btn {
  --btn-bg: var(--sy-gold); --btn-fg: var(--sy-ink); --btn-bd: var(--sy-gold);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: 0 1.75rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: var(--weight-semibold); font-size: var(--text-xs);
  letter-spacing: var(--tracking-ui); text-transform: uppercase; line-height: 1; white-space: nowrap;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--sy-orange));
  transform: translateY(101%); transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover, var(--btn-fg)); border-color: var(--btn-bd-hover, var(--btn-bd)); }
.btn .btn__arrow { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn .btn__arrow--back { transform: rotate(180deg); }
.btn:hover .btn__arrow--back { transform: rotate(180deg) translateX(4px); }
.btn .btn__play { width: 14px; height: 14px; }
.btn { --btn-bd-hover: var(--sy-orange); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--sy-ink); --btn-bd: var(--sy-ink); --btn-fill: var(--sy-ink); --btn-fg-hover: #fff; --btn-bd-hover: var(--sy-ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--sy-ink); --btn-bd: #fff; --btn-fill: var(--sy-gold); --btn-bd-hover: var(--sy-gold); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.65); --btn-fill: #fff; --btn-fg-hover: var(--sy-ink); --btn-bd-hover: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: var(--weight-semibold); font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase;
  color: var(--color-accent); padding-block: 0.35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Status chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
  border: 1px solid var(--sy-line); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--soon { color: var(--sy-orange-text); border-color: rgba(240,123,24,.4); background: var(--sy-gold-100); }
.chip--dev { color: var(--sy-graphite); border-color: rgba(75,78,82,.3); background: rgba(75,78,82,.05); }
.chip--live { color: #2F6B45; border-color: rgba(47,107,69,.3); background: rgba(47,107,69,.06); }

/* ---------- Icon badge (guideline: icons in #4B4E52) ---------- */
.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sy-graphite); color: #fff; flex: none; }
.icon-badge svg { width: 20px; height: 20px; }

/* ---------- Header: floating bar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); padding-top: calc(10px + env(safe-area-inset-top, 0px));
  color: var(--sy-ink);
  transition: color var(--dur-base) var(--ease-out);
}
/* White once scrolled; see-through over a dark photo/video hero (data-tone="dark") */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%;
  height: calc(var(--header-h) - 20px); padding-inline: 1.25rem 0.5rem;
  border: 1px solid var(--sy-line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header[data-tone="dark"]:not(.is-solid) { color: var(--sy-on-dark); }
.site-header[data-tone="dark"]:not(.is-solid) .site-header__inner { background: rgba(var(--sy-scrim), 0.28); border-color: rgba(255, 255, 255, 0.18); box-shadow: none; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand__mark { width: 40px; height: 40px; position: relative; flex: none; }
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--dur-base); }
.brand__mark .on-dark-img { opacity: 0; }
.site-header[data-tone="dark"]:not(.is-solid) .brand__mark .on-dark-img, .on-dark .brand__mark .on-dark-img { opacity: 1; }
.site-header[data-tone="dark"]:not(.is-solid) .brand__mark .on-light-img, .on-dark .brand__mark .on-light-img { opacity: 0; }
.brand__text { display: grid; gap: 0.3rem; min-width: 0; }
.brand__name { font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.03em; line-height: 1; white-space: nowrap; }
.brand__sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; opacity: 0.75; }
@media (max-width: 374px) { .brand__name { font-size: 1rem; } .brand__sub { font-size: 0.625rem; } .brand { gap: 0.55rem; } .brand__mark { width: 34px; height: 34px; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 0rem + 1.4vw, 2.1rem); }
.nav__link { position: relative; font-weight: 600; font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; padding-block: 0.5rem; white-space: nowrap; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current]::after { background: var(--sy-gold); }
/* Dropdown for items with sub pages */
.nav__item { position: relative; display: flex; align-items: center; gap: 0.15rem; }
.nav__chev { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; border-radius: 50%; transition: background-color var(--dur-fast); }
.nav__chev:hover { background: rgba(127, 127, 127, 0.16); }
.nav__chev svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.nav__chev[aria-expanded="true"] svg, .mobile-menu__chev[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 20px); left: -0.75rem; z-index: 2; min-width: 19rem; margin: 0; padding: 0.5rem; list-style: none;
  background: #fff; color: var(--sy-ink); border: 1px solid var(--sy-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.nav__sub[hidden], .mobile-menu__sub[hidden] { display: none; }
.nav__sub a { display: block; padding: 0.7rem 0.9rem; border-radius: 8px; font-size: var(--text-sm); font-weight: 600; line-height: 1.3; transition: background-color var(--dur-fast), color var(--dur-fast); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--sy-gold-100); color: var(--sy-orange-text); }
.nav .btn { min-height: 44px; padding: 0 1.25rem; }

.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -4px; position: relative; flex: none; z-index: calc(var(--z-menu) + 1); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 28px; right: 20px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); right: 12px; }
.menu-open .site-header, .menu-open .site-header[data-tone="dark"]:not(.is-solid) { color: var(--sy-ink); z-index: calc(var(--z-menu) + 1); }
.menu-open .site-header__inner, .menu-open .site-header[data-tone="dark"]:not(.is-solid) .site-header__inner { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* the menu panel is white, so show the light-background logo even over a dark hero */
.menu-open .site-header .brand__mark .on-dark-img { opacity: 0; }
.menu-open .site-header .brand__mark .on-light-img { opacity: 1; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--sy-white); color: var(--sy-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0); visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  transition: clip-path 700ms var(--ease-in-out), visibility 0s linear 700ms;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 700ms var(--ease-in-out), visibility 0s; }
.mobile-menu__list { display: grid; gap: 0.25rem; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem; font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); line-height: 1.2; padding-block: 0.6rem; /* tap target ≥ 48px */
  opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.mobile-menu__list a small { font-size: 0.9rem; color: var(--sy-orange-text); font-weight: 500; }
.mobile-menu__list a[aria-current] { color: var(--sy-orange-text); }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mobile-menu__chev { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--sy-line); border-radius: 50%;
  opacity: 0; transition: opacity 600ms var(--ease-out) 340ms; }
.menu-open .mobile-menu__chev { opacity: 1; }
.mobile-menu__chev svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.mobile-menu__sub { display: grid; gap: 0.1rem; margin: 0 0 0.5rem; padding: 0 0 0 2.4rem; list-style: none; }
.mobile-menu__list .mobile-menu__sub a { font-size: var(--text-md); font-weight: 500; line-height: 1.35; padding-block: 0.55rem;
  color: var(--color-text-muted); opacity: 1; transform: none; transition: none; }
.mobile-menu__list .mobile-menu__sub a[aria-current="page"] { color: var(--sy-orange-text); font-weight: 600; }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; }
.menu-open .mobile-menu__list > li:nth-child(1) a { transition-delay: 220ms; }
.menu-open .mobile-menu__list > li:nth-child(2) a { transition-delay: 280ms; }
.menu-open .mobile-menu__list > li:nth-child(3) a { transition-delay: 340ms; }
.menu-open .mobile-menu__list > li:nth-child(4) a { transition-delay: 400ms; }
.menu-open .mobile-menu__list > li:nth-child(5) a { transition-delay: 460ms; }
.menu-open .mobile-menu__list > li:nth-child(6) a { transition-delay: 520ms; }
.mobile-menu__foot { display: grid; gap: 0.75rem; border-top: 1px solid var(--sy-line); padding-top: 1.5rem; }
.mobile-menu__foot .tagline { color: var(--sy-orange-text); }
.mobile-menu__foot .details { color: var(--color-text-muted); }
.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 76px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sy-graphite-deep); color: var(--sy-on-dark); padding-top: clamp(4rem, 3rem + 4vw, 7rem); --color-accent: var(--sy-gold); }
.site-footer a { transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--sy-gold); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-col h4 { font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--sy-gold); font-weight: 600; margin-bottom: 1.25rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col li { color: var(--sy-on-dark-muted); }
.footer-col .details { color: var(--sy-on-dark-muted); }
.footer-bottom { padding-block: 1.5rem; border-top: 1px solid var(--sy-line-dark); color: var(--sy-on-dark-muted); }
.footer-bottom > .container { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer-bottom .member { color: var(--sy-on-dark); font-weight: 600; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Line-masked headline reveal: JS wraps each line in .line > .line__inner */
.split .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .line__inner { display: block; transform: translateY(105%); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--delay, 0ms)); }
.split.is-in .line__inner { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .split .line__inner { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; font-weight: 600; color: var(--color-text-muted); }

/* ---------- Image slot (until Synchrotech supplies photography) ---------- */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 100%; aspect-ratio: var(--ar, 4 / 3);
  border: 1px dashed rgba(75, 78, 82, 0.35); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; text-align: center;
  color: var(--color-text-muted);
  background-color: var(--sy-paper);
  background-image: repeating-linear-gradient(135deg, rgba(75, 78, 82, 0.05) 0 1px, transparent 1px 14px);
  background-size: cover; background-position: center;
  transition: border-color var(--dur-base), background-color var(--dur-base);
}
.ph:hover { border-color: rgba(75, 78, 82, 0.6); background-color: var(--sy-gold-100); }
.ph:focus-within { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.ph__file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; color: var(--sy-orange-text); word-break: break-all; }
.ph__inner { display: grid; justify-items: center; gap: 0.3rem; padding: 1.25rem; max-width: 34ch; transition: opacity var(--dur-base); }
.ph__inner svg { width: 30px; height: 30px; color: var(--sy-graphite); margin-bottom: 0.4rem; }
.ph__inner strong { font-size: var(--text-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--sy-graphite); }
.ph__inner span { font-size: var(--text-sm); color: var(--sy-ink); line-height: 1.45; }
.ph__inner small { font-size: 0.75rem; }
.ph__hint { font-style: normal; font-size: 0.6875rem; margin-top: 0.5rem; color: var(--sy-orange-text); font-weight: 600; letter-spacing: 0.08em; }
.ph.has-img { border-style: solid; border-color: transparent; background-color: transparent; }
.ph.has-img .ph__inner { opacity: 0; }
.ph.has-img:hover .ph__inner { opacity: 1; background: rgba(255, 255, 255, 0.9); border-radius: var(--radius); }
.ph--photo, .ph--photo:hover { border: 0; background: none; cursor: default; }
.ph--photo img, .ph--photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .ph__hint { display: none; } .ph__inner { padding: 0.9rem; } }

/* ---------- Section header ---------- */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1.5rem clamp(1rem, 0.5rem + 1.6vw, 2rem); align-items: end; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-head__title { grid-column: 1 / span 7; }
.section-head__title h2 { margin-top: 1.25rem; }
.section-head__aside { grid-column: 9 / -1; color: var(--color-text-muted); }
@media (max-width: 900px) { .section-head__title, .section-head__aside { grid-column: 1 / -1; } }
/* heading left, action right */
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--row h2 { margin-top: 1rem; }

/* ---------- Forms ---------- */
.field { position: relative; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.95rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(75,78,82,.4);
  border-radius: 0; font-size: var(--text-md); color: var(--color-text); transition: border-color var(--dur-base);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--sy-graphite) 50%), linear-gradient(135deg, var(--sy-graphite) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; text-overflow: ellipsis; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8E9196; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--sy-orange); box-shadow: 0 1px 0 0 var(--sy-orange); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: #A33B3B; }
.field__error { font-size: var(--text-sm); color: #A33B3B; }
.check { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sy-orange-text); flex: none; }
.check label { flex: 1; min-width: 0; }
.check .field__error { flex-basis: 100%; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--space-4); } .mt-3 { margin-top: var(--space-5); } .mt-4 { margin-top: var(--space-6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 600px) { .hide-sm { display: none !important; } }

/* Small slots keep the icon, label and file name; the description and size drop out so nothing is cut off */
.ph:not(.ph--photo) { container-type: size; }
@container (max-height: 300px) { .ph__inner > span, .ph__hint, .ph__size { display: none; } }
@container (max-height: 150px) { .ph__inner svg { display: none; } }
