/* Simply Art Creative — main.css
   Layout and feel after the Two Palms reference Tino chose (twopalmsmedia.com/ae): fixed black bar, full-screen
   photograph, heavy uppercase headings, black sections with white bands, pill buttons, project cards, one closing band.
   Palette: Tino's brief, black and white with grey as the accent. Type: Rethink Sans.
   Foundation adapted from Taste Skill base.css; checked with Taste Skill and Impeccable. */

/* ---------- tokens ---------- */
:root {
  --bg: #000000;
  --surface: #141414;
  --ink: #ffffff;
  --muted: #b3b3b3;
  --accent: #c8c8c8;
  --accent-ink: #000000;
  --paper: #ffffff;
  --paper-surface: #efefef;
  --paper-ink: #111111;
  --paper-muted: #555555;

  --font: "Rethink Sans", system-ui, sans-serif;

  /* five sizes on the whole page */
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --step-display: clamp(3rem, 11vw, 9rem);

  --margin: clamp(1rem, 3vw, 2.5rem);
  --gutter: clamp(1rem, 2.4vw, 2.5rem);
  --section: clamp(6rem, 11vw, 11rem);
  --bar: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #444444 var(--bg); caret-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
picture { display: contents; } /* WebP wrapper: the img inside stays the layout item */
img { height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
p { max-width: 62ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: balance; }
.title { font-size: var(--step-title); font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }

/* ---------- controls: one pill shape for every button ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.6rem; border-radius: 999px; font-weight: 800; font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pill:active { transform: scale(0.97); }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-dark { background: var(--paper-ink); color: var(--paper); }
.pill-outline { border: 2px solid currentColor; }
.pill-small { min-height: 2.25rem; padding: 0 1rem; font-size: 0.8125rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .pill-accent:hover { background: var(--paper); }
  .pill-dark:hover { background: #3a3a3a; }
  .pill-outline:hover { background: var(--ink); color: var(--bg); }
  .link:hover { text-decoration-color: currentColor; }
}

.skip-link { position: absolute; left: var(--margin); top: -4rem; z-index: 30; padding: 0.6rem 1rem; background: var(--paper); color: var(--paper-ink); }
.skip-link:focus { top: 0.5rem; }

/* ---------- header: fixed black bar ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--margin); background: var(--bg); }
.site-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.site-logo img { width: auto; height: 2.1rem; }
.site-logo span { font-size: 0.9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; white-space: nowrap; }
.menu-button { min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--surface); font-weight: 800; font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: fixed; inset: var(--bar) 0 auto; background: var(--bg); padding: 1rem var(--margin) 2rem; }
.site-nav.is-open ul { display: grid; gap: 0.25rem; }
.site-nav.is-open a:not(.pill) { display: block; padding: 0.6rem 0; font-size: var(--step-lead); font-weight: 800; text-transform: uppercase; text-decoration: none; }
.site-nav.is-open .pill { margin-top: 1rem; }
.js .site-nav:not(.is-open) { display: none; }
html:not(.js) .site-nav { display: block; }
html:not(.js) .menu-button { display: none; }
@media (min-width: 52em) {
  .menu-button { display: none; }
  .js .site-nav:not(.is-open), .site-nav { display: block; position: static; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
  .site-nav a:not(.pill) { font-size: var(--step-small); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.4em; transition: text-decoration-color var(--t-hover) ease; }
  .site-nav a:not(.pill):hover, .site-nav a:not(.pill):focus-visible { text-decoration-color: currentColor; }
  .site-nav .pill { min-height: 2.5rem; }
}

/* ---------- hero: one full-screen photograph ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: var(--bar); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: var(--bar) 0 0; z-index: -1; overflow: hidden; background: var(--surface); }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms ease; }
.hero-media .slide.is-active { opacity: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.08); } /* black and white until the showreel */
.slides-toggle { position: absolute; z-index: 2; right: var(--margin); bottom: clamp(2.5rem, 6vw, 4.5rem); min-height: 2.75rem; padding: 0 1.1rem; border: 2px solid rgb(255 255 255 / 0.6); border-radius: 999px; background: rgb(0 0 0 / 0.35); color: var(--ink); font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.slides-toggle:hover { background: rgb(0 0 0 / 0.6); border-color: var(--ink); }
.hero-media::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.35) 45%, rgb(0 0 0 / 0) 70%); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.hero-copy { padding-block: 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: var(--step-display); font-weight: 800; line-height: 0.92; letter-spacing: -0.02em; text-transform: uppercase; }
.hero h1 .line { display: block; }
.hero-sub { margin-top: 1.5rem; max-width: 38ch; font-size: var(--step-lead); line-height: 1.4; }
.hero .pill { margin-top: 2rem; }

/* ---------- white bands ---------- */
.band-light { background: var(--paper); color: var(--paper-ink); --muted: var(--paper-muted); }
.band-light ::selection { background: var(--paper-ink); color: var(--paper); }
.band-light :focus-visible { outline-color: var(--paper-ink); }

/* ---------- studio ---------- */
.studio { padding-block: var(--section); }
.studio-grid { display: grid; gap: 3rem; }
.studio-lead { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.45; }
.studio-text p + p { margin-top: 1.25rem; }
.credits-title { margin-top: 2.5rem; font-size: var(--step-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.credits { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.credits li { padding: 0.9rem 1.1rem; background: var(--paper-surface); }
.studio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 64em) {
  .studio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .studio-text { grid-column: 1 / span 6; }
  .studio-photo { grid-column: 8 / span 5; }
}

/* ---------- services: big uppercase blocks with a photograph each ---------- */
.services { padding-top: var(--section); }
.service-list { margin-top: 3rem; display: grid; gap: 3rem; }
.service { display: grid; gap: 1.25rem; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); transition: transform 600ms var(--ease-out); }
.service h3 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.005em; }
.service p { margin-top: 0.75rem; color: var(--muted); }
@media (min-width: 48em) {
  .service { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gutter); align-items: center; }
}
@media (min-width: 64em) {
  .service-list { gap: 0; }
  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 1.75rem; }
  .service img { grid-column: 1 / span 3; aspect-ratio: 4 / 3; }
  .service div { grid-column: 5 / span 8; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gutter); align-items: baseline; }
  .service p { margin-top: 0; }
  .service:nth-child(even) { background: var(--surface); margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
}
@media (hover: hover) and (pointer: fine) { .service:hover img { transform: scale(1.03); } }

/* ---------- clients: you're in good company ---------- */
.clients { padding-block: var(--section) calc(var(--section) * 0.6); }
.clients .title { text-align: center; }
.logo-wall { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; --cols: 2; }
.logo-tile { flex: none; width: calc((100% - (var(--cols) - 1) * 8px) / var(--cols)); display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.5rem; background: var(--surface); }
.logo-tile img { width: 100%; max-width: 12rem; max-height: 4.5rem; object-fit: contain; transition: transform var(--t-hover) var(--ease-out); }
.logo-tile--tall img { max-height: 6rem; }
.logo-tile--name span { font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; text-align: center; letter-spacing: 0.02em; }
@media (min-width: 48em) { .logo-wall { --cols: 3; } }
@media (min-width: 64em) { .logo-wall { --cols: 4; max-width: 80rem; margin-inline: auto; } }
@media (hover: hover) and (pointer: fine) { .logo-tile:hover img { transform: scale(1.05); } }

/* ---------- work: project cards on white ---------- */
.work { padding-block: calc(var(--section) * 0.7) calc(var(--section) * 0.6); }
.work .title { text-align: center; }
.work-list { margin-top: 3.5rem; display: grid; gap: 3rem; }
.work-card > a { display: block; text-decoration: none; }
.work-card figure { position: relative; overflow: hidden; background: var(--paper-surface); }
.work-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
.work-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0) 50%); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.work-card figcaption { position: absolute; z-index: 1; inset: auto 1.25rem 1.25rem; display: grid; justify-items: start; gap: 0.75rem; color: var(--ink); }
.card-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.work-card > p { margin-top: 1.1rem; }
.card-dates { margin-top: 0.4rem !important; color: var(--paper-muted); font-size: var(--step-small); }
.work-more { margin-top: 3.5rem; display: flex; justify-content: center; max-width: none; }
@media (min-width: 48em) { .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
@media (hover: hover) and (pointer: fine) {
  .work-card a:hover img { transform: scale(1.04); }
  .work-card a:hover .pill-accent { background: var(--paper); }
}
.work-card a:focus-visible { outline-offset: 4px; }

/* ---------- work with us: one closing band ---------- */
.start { padding-block: calc(var(--section) * 0.6) var(--section); }
.start-grid { display: grid; gap: 3rem; }
.start-intro { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.45; }
.needs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.needs label { position: relative; cursor: pointer; }
.needs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.needs span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999px; background: var(--surface); border: 2px solid #3a3a3a; font-size: var(--step-small); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease; }
.needs input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.needs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .needs input:not(:checked):hover + span { border-color: var(--muted); } }
.brand-field { display: block; margin-top: 1rem; }
.brand-field input { width: 100%; min-height: 3.5rem; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--surface); border: 2px solid #3a3a3a; font-size: var(--step-body); }
.brand-field input::placeholder { color: var(--muted); opacity: 1; }
.brand-field input:focus { outline: none; border-color: var(--accent); }
.start-preview { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }
.start-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.start-direct { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2rem; color: var(--muted); }
.start-direct a { color: var(--ink); }
.start-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
@media (min-width: 64em) {
  .start-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .start-main { grid-column: 1 / span 6; }
  .start-photo { grid-column: 8 / span 5; }
}

/* ---------- footer ---------- */
.site-footer { display: grid; gap: 2rem; padding-block: 3.5rem 2.5rem; background: var(--surface); }
.footer-logo { display: flex; align-items: center; gap: 1rem; max-width: none; }
.footer-logo img { width: auto; height: 3.5rem; }
.footer-logo span { font-size: var(--step-lead); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-legal { color: var(--muted); font-size: var(--step-small); }
@media (min-width: 64em) {
  .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; column-gap: var(--gutter); }
  .footer-links { justify-content: flex-end; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- motion (content stays visible without JavaScript) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media .slide.is-active img { animation: drift 12s var(--ease-soft) forwards; }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 350ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line { to { transform: none; } }
