/* Hallmark · shape: Catalogue (draw 7704ae) · genre: atmospheric · theme: brand · redesign: full · job: hire · draw: 7704ae (hero Corridor to Stage, nav search-led to edge-aligned; the material is photographs and the site has no search)
 * paper: oklch(14% 0.012 245) · accent: oklch(48.1% 0.167 26.2) · display: Ubuntu (the logo's face) · body: Ubuntu · hero: Stage, letterboxed reel (four of their own frames from Òrrius and the studio crossfading in a scope frame, the head in the bar beneath) · nav: edge-aligned, logo, four anchors, languages, the email · footer: mast · signature: the graded reel, every frame shown in a cold steel grade that lifts to its true colour under the pointer, the way a colourist toggles the grade
 * axes: dark/grotesk-sans/chromatic-red · posture: Restrained (brand red on the WhatsApp action, the live reel marker and focus) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: E, the reel frames are screenshots at about 1800px; they hold at the 1312px frame and the slots take originals */
/* Hallmark · waive 6b · hero at 100svh minus the nav, head left and actions right, two axes · the letterboxed reel is the film, the bar under it the credits */
@import url("./tokens.css");
@import url("./base.css");

/* skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* controls */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; align-items: center; gap: var(--space-xl); height: var(--nav-h); }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a, .nav__lang a, .nav__mail { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover, .nav__lang a:hover, .nav__mail:hover { color: var(--color-ink); text-decoration: underline; }
.nav__links a:focus-visible, .nav__lang a:focus-visible, .nav__mail:focus-visible, .nav__menu summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__lang { display: flex; gap: var(--space-sm); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__lang a[aria-current="true"] { color: var(--color-ink); }
.nav__mail { color: var(--color-ink); }
.nav__menu { display: none; margin-inline-start: auto; }
.nav__menu summary { list-style: none; cursor: pointer; font-size: var(--text-md); color: var(--color-ink); padding: var(--space-xs) 0; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu ul { position: absolute; inset-inline: 0; top: var(--nav-h); margin: 0; padding: var(--space-lg) var(--gutter) var(--space-xl); list-style: none; display: grid; gap: var(--space-md); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__menu:not([open]) ul { display: none; }
.nav__menu ul a { font-size: var(--text-lg); color: var(--color-ink); text-decoration: none; }
.nav__menu ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* hero */
.hero { display: grid; min-height: calc(100svh - var(--nav-h)); align-content: space-between; padding-top: var(--space-lg); }

/* the reel: frames stacked, one showing, all graded cold until the pointer lifts the grade */
.reel { position: relative; isolation: isolate; height: clamp(300px, calc(100svh - var(--nav-h) - 19rem), 560px); background: var(--color-paper-2); }
.reel > .slide[data-slot] { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease-in-out); }
.reel > .slide.is-active { opacity: 1; }
.reel > .slide > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.reel::before, .reel::after, .graded::before, .graded::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.reel::before, .graded::before { background: var(--color-muted); mix-blend-mode: saturation; }
.reel::after, .graded::after { background: var(--color-tint); mix-blend-mode: multiply; }
.graded { isolation: isolate; }
.reel:hover::before, .reel:hover::after, .graded:hover::before, .graded:hover::after, .hero:has(.reel__controls :focus-visible) .reel::before, .hero:has(.reel__controls :focus-visible) .reel::after { opacity: 0; }

.reel__controls { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-md); margin-top: var(--space-2xs); }
.reel__dots { display: flex; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.reel__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reel__dot::before { content: ""; width: 32px; height: 2px; background: var(--color-rule); transition: background-color var(--dur-short) var(--ease-out); }
.reel__dot:hover::before { background: var(--color-ink-2); }
.reel__dot[aria-current="true"]::before { background: var(--color-accent-2); }
.reel__dot:focus-visible, .reel__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.reel__toggle { min-height: 44px; padding: 0 var(--space-xs); border: 0; background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.reel__toggle:hover { color: var(--color-ink); text-decoration: underline; }
html:not(.js) .reel__controls { visibility: hidden; }

.hero__credits { padding-block: var(--space-lg) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.hero h1 { grid-column: 1 / span 7; max-width: none; font-size: clamp(2.75rem, 3.6vw + 0.9rem, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero__side { grid-column: 8 / -1; display: grid; gap: var(--space-lg); padding-bottom: var(--space-2xs); }
.hero__side .lead { color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

@media (prefers-reduced-motion: no-preference) {
  .hero__credits > .container { animation: settle 0.6s var(--ease-out) both; }
  @keyframes settle { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .reel > .slide[data-slot] { transition: none; } }

/* shared */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
section a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* work: two real frames, graded like the reel */
.work { padding-block: var(--section-gap) var(--section-gap-s); }
.work__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.work__head h2 { grid-column: 1 / span 6; }
.work__head .lead { grid-column: 8 / -1; color: var(--color-ink-2); }
.work__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.work__item { margin: 0; display: grid; gap: var(--space-sm); }
.work__frame { aspect-ratio: 7 / 5; }
.work__frame--square { aspect-ratio: 1 / 1; }
.work__frame > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.work__item figcaption { font-size: var(--text-sm); color: var(--color-ink-2); }
.work__item figcaption b { display: block; font-weight: 500; font-size: var(--text-md); color: var(--color-ink); }

/* services: a switcher of two crafts, three rows each */
.services { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.services__head { grid-column: 1 / span 4; display: grid; gap: var(--space-xl); position: sticky; top: calc(var(--nav-h) + var(--space-2xl)); }
.services__panels { grid-column: 6 / -1; }
.seg { display: inline-flex; justify-self: start; border: 1px solid var(--color-rule); }
.seg__tab { min-height: 44px; padding: 0 var(--space-lg); border: 0; background: transparent; color: var(--color-ink-2); font: 500 var(--text-md)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg__tab:hover { color: var(--color-ink); }
.seg__tab[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.seg__tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg__tab:active { transform: translateY(1px); }
html:not(.js) .seg { display: none; }
html:not(.js) .rows[hidden] { display: block !important; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap-columns); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row h3 { font-size: var(--text-title); }
.row p { color: var(--color-ink-2); }

/* about: one statement */
.about { padding-block: var(--section-gap-l) var(--section-gap); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.about__statement { grid-column: 1 / span 10; max-width: 22ch; font-size: var(--text-display-s); line-height: 1.05; }
.about__body { grid-column: 6 / span 6; display: grid; gap: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.5; }

/* reels: five vertical loops in a row, a rail on the phone */
.reels { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.reels__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.reels__head h2 { grid-column: 1 / span 5; }
.reels__head .lead { grid-column: 7 / span 5; color: var(--color-ink-2); }
.reels__toggle { grid-column: 12 / -1; justify-self: end; }
.reels__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.reels__list:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.reels__item { margin: 0; display: grid; gap: var(--space-sm); }
.reels__item video { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: var(--color-paper-3); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.reels__item figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.reels__item figcaption b { display: block; font-weight: 500; font-size: var(--text-md); color: var(--color-ink); }
.reels__social { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.reels__social a { display: inline-flex; align-items: baseline; gap: var(--space-xs); min-height: 44px; align-items: center; color: var(--color-ink); text-decoration: none; font-weight: 500; transition: color var(--dur-short) var(--ease-out); }
.reels__social a:hover { color: var(--color-ink-2); text-decoration: underline; }
.social__handle { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }

/* contact: facts beside a form that opens WhatsApp or mail */
.contact { padding-block: var(--section-gap) var(--section-gap); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.contact__head { grid-column: 1 / span 5; display: grid; gap: var(--space-xl); }
.contact__facts { margin: 0; display: grid; gap: var(--space-md); }
.contact__facts div { display: grid; gap: var(--space-3xs); }
.contact__facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.contact__facts dd { margin: 0; font-size: var(--text-lead); font-weight: 500; }
.contact__facts a { text-decoration: none; }
.contact__facts a:hover { text-decoration: underline; }
.form { grid-column: 7 / -1; display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field [aria-invalid] { border-color: var(--color-error); }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

/* footer: a mast */
.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__mast { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.foot__mast img { width: min(560px, 100%); height: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot__links a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__line { font-size: var(--text-sm); color: var(--color-ink-2); margin-bottom: var(--space-sm); max-width: none; }
.foot p[data-credits] { font-size: var(--text-xs); color: var(--color-muted); max-width: none; }
.foot a { color: var(--color-ink-2); }

@media (max-width: 60rem) {
  .work__head, .services__grid, .about__grid, .reels__head, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .work__head h2, .work__head .lead, .services__head, .services__panels, .about__statement, .about__body, .reels__head h2, .reels__head .lead, .contact__head, .form { grid-column: 1 / -1; }
  .reels__head { row-gap: var(--space-md); margin-bottom: var(--space-xl); }
  .reels__toggle { grid-column: 1 / -1; justify-self: start; }
  .reels__list { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(12rem, 44%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--space-sm); }
  .reels__list > li { scroll-snap-align: start; }
  .work__head { row-gap: var(--space-md); margin-bottom: var(--space-xl); }
  .work__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .services__head { position: static; margin-bottom: var(--space-xl); }
  .row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
}
@media (max-width: 40rem) {
  .form__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* below */
@media (max-width: 75rem) {
  .nav__links { gap: var(--space-md); }
  .nav__mail { display: none; }
}
@media (max-width: 60rem) {
  .nav__links, .nav__lang, .nav__mail { display: none; }
  .nav__menu { display: block; }
  .hero { min-height: 0; }
  .reel { height: auto; aspect-ratio: 3 / 2; }
  .hero h1, .hero__side { grid-column: 1 / -1; }
  .hero__side { margin-top: var(--space-lg); }
}
@media (max-width: 40rem) {
  .nav__logo img { height: 40px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
