/* Sindri Jensson — Business · Brand · Direction */

:root {
  --ink: #0e0e0e;
  --ink-2: #161616;
  --paper: #f3f2ef;
  --white: #ffffff;
  --grey-1: #2a2a2a;
  --grey-2: #5c5c5c;
  --grey-3: #8f8f8f;
  --grey-4: #c9c9c6;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.5vw, 88px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--paper); color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 28px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
h2 em { font-style: italic; color: var(--grey-3); }

.section-lede { max-width: 34em; margin-top: 20px; color: var(--grey-3); font-size: 18px; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
}
.site-header.is-over-light .nav-toggle { color: var(--ink); }
@media (min-width: 761px) {
  .site-header.is-over-light .nav-menu a { color: var(--ink); }
}

.nav {
  display: flex; justify-content: flex-end; align-items: center;
  height: 84px; padding: 0 var(--gutter);
  transition: height .4s var(--ease);
}
.is-scrolled .nav { height: 64px; }

.nav-menu { display: flex; gap: clamp(24px, 3vw, 44px); }
.nav-menu a {
  position: relative;
  font-size: 15px; letter-spacing: .01em; text-decoration: none;
  color: rgba(243, 242, 239, .86);
  padding: 6px 0;
  transition: color .25s;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="true"] { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  align-items: center; gap: 12px;
  background: none; border: 0; color: var(--paper); cursor: pointer;
  font: inherit; font-size: 14px; letter-spacing: .04em; padding: 8px 0;
}
.nav-toggle-icon { position: relative; width: 22px; height: 10px; }
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav { height: 68px; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 var(--gutter);
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .nav-menu a { font-family: var(--serif); font-size: 44px; line-height: 1.25; color: var(--paper); }
  .nav-menu a::after { display: none; }
  .nav-menu li { transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
  .nav-menu.is-open li { transform: none; opacity: 1; }
  .nav-menu.is-open li:nth-child(2) { transition-delay: .05s; }
  .nav-menu.is-open li:nth-child(3) { transition-delay: .1s; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: #3b3b3b;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img {
  object-fit: cover; object-position: 55% 0%;
  animation: hero-in 1.2s var(--ease) both;
}
.hero::after {
  /* soft vignette so type always reads */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,0) 28%);
}

.hero-content {
  position: relative; z-index: 1;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--white);
  animation: rise 1.4s .25s var(--ease) both;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(13px, 1.25vw, 17px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  animation: rise 1.4s .4s var(--ease) both;
}
.hero-sub span { margin: 0 .35em; color: rgba(255,255,255,.5); }
.hero .link-arrow { margin-top: 52px; animation: rise 1.4s .55s var(--ease) both; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; letter-spacing: .04em; text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.6);
  transition: border-color .3s, gap .4s var(--ease);
}
.link-arrow:hover { gap: 18px; border-color: var(--white); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 1;
  width: 1px; height: 56px; transform: translateX(-50%);
  background: rgba(255,255,255,.2); overflow: hidden;
}
.hero-scroll span {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--white);
  animation: scroll-line 2.4s var(--ease) infinite;
}

@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 52% 0%; }
  .hero::after {
    background: linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 30%, rgba(10,10,10,0) 58%);
  }
  .hero-content { padding-bottom: 72px; }
  .hero-scroll { display: none; }
  .hero-sub { letter-spacing: .24em; }
  .hero .link-arrow { margin-top: 36px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  /* the portrait is landscape — keep him centred and let the dark backdrop take the rest */
  .hero-media img { object-position: 50% 0%; }
}

@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Intro ---------- */

.intro { padding: clamp(64px, 8vw, 112px) 0; background: var(--ink); }
.lede {
  font-family: var(--serif);
  font-size: clamp(30px, 3.9vw, 54px);
  line-height: 1.14;
  max-width: 12em;
  color: var(--paper);
}
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 40px;
  border-top: 1px solid var(--grey-1);
}
.pillars .num { display: block; font-size: 12px; letter-spacing: .18em; color: var(--grey-3); margin-bottom: 20px; }
.pillars h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
.pillars p { color: var(--grey-3); font-size: 15.5px; }

@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- About ---------- */

.about {
  background: var(--paper); color: var(--ink);
  padding: clamp(64px, 8vw, 112px) 0 48px;
}
.about .eyebrow { color: var(--grey-2); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.about-media { margin: 0; position: sticky; top: 100px; overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about-text { padding-top: 12px; }
.about h2 { max-width: 11em; }
.prose { margin-top: 28px; max-width: 34em; }
.prose p { color: #3a3a3a; }
.prose p + p { margin-top: 1.15em; }
.quote {
  margin: 32px 0 0; padding-top: 24px;
  border-top: 1px solid var(--grey-4);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2;
  max-width: 17em;
}

.experience {
  margin-top: 32px;
}
.experience .eyebrow { margin: 6px 0 0; }
.brands { display: flex; flex-wrap: wrap; gap: 6px 0; }
.brands li {
  font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3;
}
.brands li:not(:last-child)::after { content: "/"; margin: 0 .5em; color: var(--grey-4); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: relative; top: 0; }
  .about-media img { aspect-ratio: 3 / 2; }
  .experience { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Services ---------- */

.services { background: var(--ink); padding: clamp(64px, 8vw, 112px) 0; }
.service-list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--grey-1); }
.service {
  display: grid; grid-template-columns: 160px 1fr auto;
  gap: 32px; align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--grey-1);
  transition: padding .5s var(--ease);
}
.service-meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-3); }
.service h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.service p { margin-top: 12px; color: var(--grey-3); max-width: 32em; }
.service-cta {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 15px; text-decoration: none; color: var(--grey-3);
  white-space: nowrap; transition: color .3s, gap .4s var(--ease);
}
.service:hover .service-cta, .service-cta:focus-visible { color: var(--white); gap: 16px; }
@media (hover: hover) { .service:hover { padding-left: 16px; } }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service-cta { margin-top: 8px; color: var(--paper); }
}

/* ---------- Contact ---------- */

.contact { background: var(--paper); color: var(--ink); padding: clamp(64px, 8vw, 112px) 0; }
.contact .eyebrow { color: var(--grey-2); }
.contact .section-lede { color: var(--grey-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); }
.contact h2 { max-width: 10em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; padding-top: 8px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .04em; color: var(--grey-2); margin-bottom: 6px; }
.optional { color: var(--grey-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid #b9b9b5; border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #8a1c1c; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: rotate(45deg); pointer-events: none;
}
.select select { padding-right: 24px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 14px;
  font: inherit; font-size: 15px; letter-spacing: .04em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 18px 30px; cursor: pointer;
  transition: background-color .3s, color .3s, gap .4s var(--ease);
}
.button:hover { background: transparent; color: var(--ink); gap: 20px; }
.button[disabled] { opacity: .5; cursor: progress; }
.form-status { font-size: 15px; color: var(--grey-2); }
.form-status.is-error { color: #8a1c1c; }

.form.is-sent { display: flex; flex-direction: column; justify-content: center; }
.form-done h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.form-done p { margin-top: 16px; color: var(--grey-2); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .button { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--grey-3); font-size: 13px; letter-spacing: .03em; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.footer-name { color: var(--paper); font-family: var(--serif); font-size: 18px; letter-spacing: 0; line-height: 1; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Rendered in Blender; the still remains visible until playback is ready. */
.intro-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.direction-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; mask-image: radial-gradient(ellipse, #000 35%, transparent 72%); }
.direction-art img, .direction-art video { width: 100%; height: 100%; object-fit: cover; }
.direction-art video { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.direction-art.is-playing video { opacity: 1; }
@media (max-width: 760px) {
  .intro-top { grid-template-columns: 1fr; gap: 24px; }
  .direction-art { width: min(100%, 360px); justify-self: center; }
  .hero-sub { letter-spacing: .16em; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .direction-art video { display: none; }
}

/* Quiet editorial details. */
.about, .contact { background-image: url("img/paper-grain.svg"); }
.intro-detail { margin-top: 28px; max-width: 38em; color: var(--grey-3); font-size: 18px; }
.experience-lead { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.experience-description { color: var(--grey-2); max-width: 40em; margin-top: 18px; margin-bottom: 28px; }
[data-rule] { position: relative; border-top-color: transparent; }
[data-rule]::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grey-1); transform-origin: left; }
.about [data-rule]::before { background: var(--grey-4); }
.js [data-rule]::before { transform: scaleX(0); transition: transform .85s var(--ease); }
.js [data-rule].rule-visible::before { transform: scaleX(1); }
.service { transition: background-color .25s var(--ease); }
.service:focus-within { background-color: rgba(255,255,255,.035); }
.service-cta { gap: 10px; transition: color .25s; }
.service-cta span { display: inline-block; transition: transform .25s var(--ease); }
.service:focus-within .service-cta { color: var(--white); gap: 10px; }
.service:focus-within .service-cta span { transform: translateX(5px); }
@media (hover: hover) {
  .service:hover { padding-left: 0; background-color: rgba(255,255,255,.035); }
  .service:hover .service-cta { gap: 10px; }
  .service:hover .service-cta span { transform: translateX(5px); }
}
@media (max-width: 760px) {
  .intro { padding-top: 64px; padding-bottom: 64px; }
  .intro-top { gap: 8px; }
  .intro-detail { margin-top: 22px; font-size: 16px; }
  .direction-art { width: min(100%, 280px); }
  .pillars { margin-top: 36px; }
  .contact h2 { font-size: clamp(36px, 7vw, 52px); }
  .field label { min-height: 1.6em; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rule]::before { transform: none; transition: none; }
  .service-cta span { transition: none; transform: none !important; }
}

/* Individual Blender objects share one compact, accessible composition. */
.brand-collection { margin: -6px -8px 0; padding: 6px 8px 18px; }
.brand-scene { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; list-style: none; }
.brand-scene li { min-width: 0; }
.brand-link { position: relative; display: flex; align-items: center; justify-content: center; height: 70px; border-radius: 8px; outline-offset: 3px; }
.brand-link img { width: 100%; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 3px rgba(32,25,15,.19)); transition: transform .3s var(--ease), filter .3s var(--ease); }
.brand-yuzu img, .brand-mosi img, .brand-auto img, .brand-nina img { height: 65px; }
.brand-caption { position: absolute; z-index: 3; left: 50%; bottom: -17px; transform: translate(-50%, 4px); white-space: nowrap; font: 11px/1.3 var(--sans); color: var(--ink); background: var(--paper); padding: 5px 8px; border-radius: 4px; box-shadow: 0 2px 8px #0001; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.brand-link:focus-visible { outline: 2px solid var(--ink); z-index: 4; }
.brand-link:focus-visible img { transform: translateY(-4px) rotate(2deg); filter: drop-shadow(0 9px 5px rgba(32,25,15,.23)); }
.brand-link:focus-visible .brand-caption { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .brand-link:hover { z-index: 4; }
  .brand-link:hover img { transform: translateY(-4px) rotate(2deg); filter: drop-shadow(0 9px 5px rgba(32,25,15,.23)); }
  .brand-link:hover .brand-caption { opacity: 1; transform: translate(-50%, 0); }
}
/* Reuse the section's existing whitespace for the objects. */
.about { padding-bottom: clamp(28px, calc(10vw - 52px), 78px); }
.experience-description { margin-bottom: 18px; }
@media (max-width: 600px) {
  .brand-collection { padding-bottom: 22px; }
  .brand-scene { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .brand-link { height: 76px; }
  .brand-link img { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-link img, .brand-caption { transition: none; }
  .brand-link:hover img, .brand-link:focus-visible img { transform: none; }
}
.experience-copy { min-width: 0; }

#reynsla { scroll-margin-top: 110px; }

.contact-email { margin-top: 20px; color: var(--grey-2); font-size: 16px; overflow-wrap: anywhere; }
.contact-email a { text-underline-offset: 4px; }

/* Compact mobile contact and intentional footer alignment. */
@media (max-width: 600px) {
  .nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
  .contact { padding: 44px 0 40px; }
  .contact-grid { gap: 26px; }
  .contact .eyebrow { margin-bottom: 16px; }
  .contact .section-lede { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .contact-email { margin-top: 12px; font-size: 14px; }
  .form { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
  .field label { margin-bottom: 2px; font-size: 12px; letter-spacing: .015em; }
  .field input, .field select { min-height: 44px; padding: 8px 0; font-size: 16px; }
  .field textarea { height: 96px; min-height: 96px; padding: 8px 0; font-size: 16px; }
  .form-foot { margin-top: 4px; gap: 12px; }
  .form-foot .button { min-height: 48px; padding: 12px 20px; }
  .form-status:empty { display: none; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; padding-top: 24px; padding-bottom: 24px; }
  .footer-name { line-height: 1.2; }
  .footer-copyright { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .footer-credit { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0; }
}
