/* Syrian Apps — studio site
   Canvas: deep forest greens. Brand: golden wheat carries the voice; teal adds depth.
   Palette supplied by the owner (Forest × Golden Wheat swatches). */

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* palette — Forest × Golden Wheat (owner-supplied swatches)
     forest: #002623 #054239 #428177 · wheat: #988561 #b9a779 #edebe0 */
  --bg: #002623;
  --surface: #054239;
  --surface-2: #0a4f43;
  --ink: #edebe0;
  --muted: rgba(237, 235, 224, 0.76);
  --faint: rgba(237, 235, 224, 0.55);
  --brass: #b9a779;        /* golden wheat — the brand accent */
  --brass-deep: #988561;
  --teal: #428177;
  --line: rgba(237, 235, 224, 0.11);
  --line-strong: rgba(237, 235, 224, 0.2);

  /* type */
  --font: 'Switzer', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;

  /* rhythm */
  --space-section: clamp(6.5rem, 13vw, 11rem);
  --width: 72rem;
  --radius: 20px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass); color: #002623; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.022em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  background: rgba(0, 38, 35, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}
.site-head.scrolled { border-bottom-color: var(--line); }

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.0rem;
  letter-spacing: -0.01em;
}
.brand svg { color: var(--brass); }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.site-nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(9rem, 22vh, 13rem);
  padding-bottom: var(--space-section);
  overflow: clip;
}

/* drifting aurora — teal + wheat light behind the hero */
.aurora { position: absolute; inset: -10% -5%; pointer-events: none; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.aurora i:nth-child(1) {
  width: 46rem; height: 46rem; top: -14rem; left: 46%;
  background: radial-gradient(circle, rgba(66, 129, 119, 0.4), transparent 65%);
}
.aurora i:nth-child(2) {
  width: 34rem; height: 34rem; top: 22%; right: -12rem;
  background: radial-gradient(circle, rgba(185, 167, 121, 0.16), transparent 65%);
}
.aurora i:nth-child(3) {
  width: 30rem; height: 30rem; bottom: -12rem; left: -8rem;
  background: radial-gradient(circle, rgba(10, 79, 67, 0.55), transparent 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift-a 26s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: drift-b 32s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: drift-a 38s ease-in-out infinite alternate-reverse; }
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6rem, 4rem, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(4rem, -5rem, 0) scale(0.92); }
}

/* one large, very quiet eight-point star — the studio mark at architectural scale */
.hero-star {
  position: absolute;
  top: 50%;
  right: -12rem;
  translate: 0 -54%;
  width: clamp(30rem, 55vw, 46rem);
  height: auto;
  color: var(--brass);
  opacity: 0.07;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-star .spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 240s linear infinite;
  }
}
@keyframes spin { to { rotate: 360deg; } }

/* floating icon collage — the apps, physically present */
.hero-collage {
  position: absolute;
  top: 49%;
  right: clamp(1rem, 7vw, 8rem);
  translate: 0 -50%;
  width: clamp(24rem, 34vw, 32rem);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}
.hero-collage .fl {
  position: absolute;
  will-change: transform;
}
.hero-collage img {
  width: 100%;
  filter: drop-shadow(0 26px 44px rgba(0, 8, 7, 0.55));
}
.hero-collage .ios img { border-radius: 22.5%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-collage img { animation: bob 7s ease-in-out infinite alternate; }
}
@keyframes bob {
  from { transform: translateY(-9px); }
  to { transform: translateY(11px); }
}
@media (max-width: 64rem) { .hero-collage { display: none; } }
@media (max-width: 64rem) { .hero-star { opacity: 0.05; } }

.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 4.9rem);
  line-height: 1.04;
  max-width: 21ch;
  font-weight: 650;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}

.hero .lede {
  margin-top: 2rem;
  max-width: 54ch;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

.hero-actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brass);
  color: #002623;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}
.btn:hover { background: #c9b88f; translate: 0 -1px; }
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateY(2px); }
.app-card:hover .more svg { transform: translateX(2px); }
.more svg { transition: transform 0.3s var(--ease-out); }

.link-quiet {
  color: var(--muted);
  font-size: 1rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.link-quiet:hover { color: var(--ink); border-color: var(--brass); }

/* hero load choreography — content is visible without JS/animation support */
.lm { display: block; overflow: hidden; padding-block: 0.06em; }
.lw { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lw { transform: translateY(118%); animation: line-up 0.95s var(--ease-out) forwards; }
  .lm:nth-child(2) .lw { animation-delay: 0.14s; }
  .hero .lede, .hero-actions { animation: rise 1s var(--ease-out) both; }
  .hero .lede { animation-delay: 0.34s; }
  .hero-actions { animation-delay: 0.48s; }
  .hero-star { animation: star-in 1.8s var(--ease-out) both; }
  .hero-collage .fl { animation: rise 1.2s var(--ease-out) both; }
  .hero-collage .fl:nth-child(1) { animation-delay: 0.25s; }
  .hero-collage .fl:nth-child(2) { animation-delay: 0.35s; }
  .hero-collage .fl:nth-child(3) { animation-delay: 0.45s; }
  .hero-collage .fl:nth-child(4) { animation-delay: 0.55s; }
  .hero-collage .fl:nth-child(5) { animation-delay: 0.65s; }
  .hero-collage .fl:nth-child(6) { animation-delay: 0.75s; }
}
@keyframes line-up { to { transform: translateY(0); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes star-in {
  from { opacity: 0; rotate: -8deg; }
  to { opacity: 0.07; rotate: 0deg; }
}

/* ---------- section scaffolding ---------- */

.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title::after { content: '.'; color: var(--brass); }

/* scroll reveals: enhancement only — default state is fully visible */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(10px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out),
                filter 0.9s var(--ease-out);
  }
  .js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
  .js .apps-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .apps-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
  .js .apps-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
  .js .apps-grid .reveal:nth-child(5) { transition-delay: 0.26s; }
  .js .apps-grid .reveal:nth-child(6) { transition-delay: 0.34s; }
}

/* ---------- app shelf ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.app-card {
  grid-column: span 3;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(66, 129, 119, 0.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: clip;
  transition: border-color 0.35s var(--ease-out), translate 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out), transform 0.5s var(--ease-out);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.app-card.featured { grid-column: span 3; }

/* cursor sheen */
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(237, 235, 224, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.app-card:hover::after { opacity: 1; }

/* real-screenshot teaser peeking from the card's edge */
.has-peek { padding-bottom: clamp(6.5rem, 9vw, 8.5rem); }
.peek {
  position: absolute;
  z-index: 0;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 0;
  width: min(52%, 340px);
  border-radius: 10px;
  filter: drop-shadow(0 20px 34px rgba(0, 8, 7, 0.5));
  transform: translateY(56%) rotate(3deg);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
.peek--ios {
  width: min(30%, 170px);
  border-radius: 24px;
  transform: translateY(60%) rotate(4deg);
}
.peek--device { border-radius: 0; }
.app-card:hover .peek { transform: translateY(38%) rotate(1deg); }
.app-card:hover .peek--ios { transform: translateY(42%) rotate(1.5deg); }
@media (prefers-reduced-motion: reduce) {
  .app-card:hover .peek, .app-card:hover .peek--ios { transform: translateY(56%) rotate(3deg); }
}
.app-card .icon, .app-card h3, .app-card .tag, .app-card .more {
  position: relative;
  z-index: 2;
}
.app-card .icon { transition: translate 0.4s var(--ease-out), scale 0.4s var(--ease-out); }
.app-card:hover .icon { translate: 0 -3px; scale: 1.05; }

.app-card:hover {
  translate: 0 -4px;
  border-color: rgba(185, 167, 121, 0.5);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
}

.app-card .icon {
  width: clamp(64px, 7vw, 84px);
  height: clamp(64px, 7vw, 84px);
}
/* iOS icons ship full-bleed; give them the platform squircle + seat */
.icon--ios img {
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
/* macOS icons carry their own shape + shadow in the artwork, padded ~12% —
   oversize them slightly so both platforms' glyphs read the same optical size */
.icon--mac { position: relative; }
.icon--mac img { width: 122%; height: 122%; margin: -11%; max-width: none; }

.app-card h3 {
  font-size: 1.4375rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.platform {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  white-space: nowrap;
}

.app-card .tag {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 46ch;
}
.app-card .more {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease-out);
}
.app-card:hover .more { gap: 0.7rem; }

/* whole-card link */
.app-card > a.cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

@media (max-width: 56rem) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .app-card, .app-card.featured { grid-column: span 1; }
}
@media (max-width: 36rem) {
  .apps-grid { grid-template-columns: 1fr; }
}

/* ---------- ethos band (the brass moment) ---------- */

.ethos {
  position: relative;
  background: linear-gradient(180deg, #b9a779, #988561);
  color: #054239;
  padding-block: var(--space-section);
  overflow: clip;
}
.ethos-star {
  position: absolute;
  top: 50%;
  right: -10rem;
  translate: 0 -50%;
  width: clamp(24rem, 40vw, 36rem);
  color: #002623;
  opacity: 0.07;
  pointer-events: none;
  will-change: transform;
}
.ethos h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  max-width: 18ch;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.ethos .body {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-size: 1.0938rem;
  line-height: 1.65;
  color: #0b3a30;
}
.ethos .body p strong { color: #002623; font-weight: 650; }
.ethos h2 { color: #002623; }
@media (max-width: 48rem) {
  .ethos .body { grid-template-columns: 1fr; }
}

/* ---------- studio ---------- */

.studio .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.studio p { color: var(--muted); max-width: 58ch; }
.studio p + p { margin-top: 1.2rem; }
.studio p strong { color: var(--ink); font-weight: 500; }

.studio-facts {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.studio-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9688rem;
}
.studio-facts dt { color: var(--faint); }
.studio-facts dd { color: var(--ink); text-align: right; }
@media (max-width: 48rem) {
  .studio .cols { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(66, 129, 119, 0.35), transparent 55%),
    var(--surface);
}
.contact-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-card .sub { margin-top: 0.7rem; color: var(--muted); max-width: 44ch; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem;
  font-size: 0.9375rem;
  color: var(--faint);
}
.site-foot .grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-foot nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); transition: color 0.25s var(--ease-out); }
.site-foot a:hover { color: var(--ink); }
.site-foot .legal { margin-top: 2.4rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- press page ---------- */

.press-hero { padding-top: clamp(9rem, 20vh, 12rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.press-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.press-hero p { margin-top: 1.5rem; color: var(--muted); max-width: 58ch; }

.press-app {
  display: grid;
  grid-template-columns: clamp(80px, 10vw, 112px) 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}
.press-app .icon { width: 100%; height: auto; }
.press-app .icon.mac { scale: 1.2; transform-origin: center; }
.press-app h2 {
  font-size: 1.625rem;
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
}
.press-app .one-liner { margin-top: 0.35rem; color: var(--brass); font-weight: 500; }
.press-app .boiler { margin-top: 1rem; color: var(--muted); max-width: 68ch; }
.press-app .press-links { margin-top: 1.4rem; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.press-app .press-links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease-out);
}
.press-app .press-links a:hover { border-color: var(--brass); }
@media (max-width: 40rem) {
  .press-app { grid-template-columns: 1fr; }
  .press-app .icon { width: 88px; }
}

.press-boiler {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.press-boiler h2 { font-size: 1.625rem; margin-bottom: 1rem; }
.press-boiler p { color: var(--muted); max-width: 68ch; }
.press-boiler p + p { margin-top: 1rem; }
