/* Flavour – Ennismore-style collective site. Spectral stands in for Spezia Serif, Instrument Sans for Spezia Sans. */
:root {
  --cream: #f5f2ef;
  --ink: #2d2d2d;
  --red: #e21e26;
  --line: rgba(45, 45, 45, 0.2);
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --pad: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--cream); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--serif); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; }
.accent { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 8px; z-index: 30; padding: 8px 12px; background: var(--cream); }
section[id] { scroll-margin-top: 56px; }

/* type */
.t-display { font: 300 clamp(48px, 9.2vw, 132px)/1.06 var(--serif); letter-spacing: -0.055em; }
.name { font: 300 clamp(32px, 3.05vw, 44px)/1.15 var(--serif); letter-spacing: -0.03em; }
.label, .btn, .more, .top-nav, .date, .foot { font: 500 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; padding: 17px 27px 16px; border: 1px solid rgba(45, 45, 45, 0.35); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-light { color: var(--cream); border-color: rgba(245, 242, 239, 0.55); }
.btn-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.more { display: inline-block; margin-top: 26px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 12px; transition: color 0.3s; }
.more:hover { color: var(--red); }

/* header: tall and clear over the film, short and cream once scrolled */
.top { position: fixed; inset: 0 0 auto; z-index: 20; height: 96px; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); color: var(--cream); transition: height 0.45s var(--ease), color 0.3s, background-color 0.3s; }
.top::after { content: ''; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; border-top: 1px solid rgba(245, 242, 239, 0.35); transition: left 0.45s var(--ease), right 0.45s var(--ease), border-color 0.3s; }
.top.solid, .menu-open .top { height: 56px; background: var(--cream); color: var(--ink); }
.top.solid::after, .menu-open .top::after { left: 0; right: 0; border-color: var(--line); }
.logo { display: block; aspect-ratio: 2160 / 1407; background: currentColor; -webkit-mask: url(../logo.svg) no-repeat center / contain; mask: url(../logo.svg) no-repeat center / contain; }
.top-logo { position: absolute; left: var(--pad); top: 50%; width: 96px; translate: 0 -50%; transition: width 0.45s var(--ease); }
.top.solid .top-logo, .menu-open .top-logo { width: 64px; }
.top-nav { display: flex; gap: 26px; }
.top-nav a { padding: 6px 0; transition: opacity 0.3s; }
.top-nav:hover a:not(:hover) { opacity: 0.55; }
.menu-btn { display: none; }
.menu { position: fixed; inset: 0; z-index: 19; display: grid; align-content: start; gap: 4px; padding: 96px var(--pad) 40px; background: var(--cream); }
.menu a { font: 300 40px/1.25 var(--serif); letter-spacing: -0.03em; }

/* hero */
.hero { position: relative; height: max(600px, 82svh); display: grid; place-items: center; overflow: hidden; background: #1c1714; color: var(--cream); text-align: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(22, 16, 12, 0.42); }
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 30px; padding: 96px var(--pad) 0; animation: rise 1.4s var(--ease) 0.3s both; }
@keyframes rise { from { opacity: 0; translate: 0 50px; } }

/* calm entrances: each block glides up once when it comes into view */
.js [data-reveal] { opacity: 0; translate: 0 70px; transition: opacity 1.2s ease calc(var(--i, 0) * 0.14s), translate 1.2s var(--ease) calc(var(--i, 0) * 0.14s); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* who we are */
.about { display: grid; justify-items: center; padding: 80px var(--pad); text-align: center; }
.label { font-size: 15px; font-weight: 400; letter-spacing: 0.05em; }
.statement { max-width: 20.5em; margin: 22px auto 40px; font: 300 clamp(28px, 3.7vw, 53px)/1.17 var(--serif); letter-spacing: -0.035em; }

/* section openers */
.intro { position: relative; padding: 80px var(--pad) 56px; text-align: center; }
.intro::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--line); }
.sub { max-width: 30em; margin: 18px auto 0; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; letter-spacing: -0.02em; }

/* carousels */
.carousel { position: relative; }
.track { display: flex; gap: 17px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: none; scroll-snap-align: start; }
.arrow { position: absolute; top: var(--arrow-y, 40%); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; transition: background 0.3s, color 0.3s; }
.arrow:hover { background: var(--ink); color: var(--cream); }
.arrow[data-prev] { left: 12px; }
.arrow[data-next] { right: 12px; }
.arrow svg { width: 16px; height: 16px; }

/* the houses */
.brands { padding: 24px 0 40px; --arrow-y: calc(clamp(250px, 21.7vw, 313px) * 0.625 - 24px); }
.brand { display: block; width: clamp(250px, 21.7vw, 313px); }
.brand img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: filter 0.5s; }
.brand:hover img { filter: brightness(0.9); }
/* every logo gets the same row; emblems are drawn taller than wordmarks so they read at the same weight */
.brand-logo { --s: 1; display: block; height: calc(58px * var(--s)); margin: 16px 0 12px; background: currentColor; -webkit-mask: var(--m) no-repeat left center / auto calc(var(--h) * var(--s)); mask: var(--m) no-repeat left center / auto calc(var(--h) * var(--s)); }
.lg-kellohalli { --h: 56px; --m: url(../logo/kellohalli.png); }
.lg-studio { --h: 46px; --m: url(../logo/studio.png); }
.lg-pizzala { --h: 46px; --m: url(../logo/pizzala.png); }
.lg-cuisine { --h: 33px; --m: url(../logo/cuisine.svg); }
.lg-bb360 { --h: 40px; --m: url(../logo/bb360.png); }
.lg-ariel { --h: 52px; --m: url(../logo/ariel.png); }
.nw { white-space: nowrap; }
.brand-text { display: block; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.brand-text em { display: block; color: var(--red); }

/* big parties: text and photo side by side, alternating */
.rows { padding: 0 var(--pad) 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; }
.row-text { display: grid; align-content: center; justify-items: start; padding: 24px max(24px, 9%); border-right: 1px solid var(--line); }
.row-img { padding-left: 24px; }
.row-flip .row-text { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.row-flip .row-img { padding: 0 24px 0 0; }
.row-text p { max-width: 26em; margin-top: 14px; font-size: 17px; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* own restaurants */
.duo { display: grid; grid-template-columns: 1fr 1fr; padding: 40px 12px 56px; }
.duo-item { display: grid; justify-items: center; align-content: start; padding: 0 12px 36px; text-align: center; }
.duo-item + .duo-item { border-left: 1px solid var(--line); }
.duo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 28px; }
.duo-item p { max-width: 34em; margin-top: 12px; font-size: 16px; }

/* spaces up close */
.gallery { padding: 24px 0 120px; --arrow-y: calc(min(596px, 82vw) * 0.375 - 24px); }
.slide { width: min(596px, 82vw); }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slide figcaption { margin-top: 14px; font-size: 15px; font-style: italic; text-align: center; }

/* made by hand */
.crafts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 12px 56px; }
.craft { display: grid; align-content: start; padding: 0 12px; }
.craft + .craft { border-left: 1px solid var(--line); }
.craft img { width: 100%; aspect-ratio: 0.98; object-fit: cover; margin-bottom: 24px; }
.craft-text { padding: 0 14%; }
.craft h3 { font: 300 26px/1.25 var(--serif); letter-spacing: -0.03em; }
.craft p { margin-top: 14px; font-size: 16px; }

/* news: the lead story stays put while the others scroll past */
.news { display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--pad) 40px; }
.feature { position: sticky; top: 80px; align-self: start; display: block; margin-right: 24px; }
.feature::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(16, 12, 10, 0.55)); }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-title { position: absolute; left: 32px; right: 80px; bottom: 32px; z-index: 1; color: var(--cream); font: 300 clamp(28px, 2.6vw, 38px)/1.2 var(--serif); letter-spacing: -0.03em; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 0; padding-left: 24px; border-left: 1px solid var(--line); }
.story { display: block; padding-right: 24px; }
.story.wide { grid-column: 1 / -1; }
.story + .story + .story { padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.story.wide img { aspect-ratio: 4 / 3; }
.story h3 { margin-top: 18px; font: 300 24px/1.3 var(--serif); letter-spacing: -0.03em; transition: color 0.3s; }
.story.wide h3 { font-size: clamp(26px, 2.2vw, 32px); }
.story:hover h3 { color: var(--red); }
.date { display: block; margin-top: 14px; font-size: 12px; opacity: 0.6; }

/* let's plan together */
.contact { margin-top: 40px; padding: 70px var(--pad) 64px; background: var(--red); color: var(--cream); }
.contact-body { max-width: 34em; margin-top: clamp(80px, 12vw, 170px); }
.contact-ways { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 18px 0 40px; font-size: 20px; }
.contact-ways a { border-bottom: 1px solid rgba(245, 242, 239, 0.5); }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 33px var(--pad); font-size: 12px; letter-spacing: 0.1em; }
.foot-logo { width: 72px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.foot nav a { transition: color 0.3s; }
.foot nav a:hover { color: var(--red); }

/* phone */
@media (max-width: 820px) {
  :root { --pad: 16px; }
  body { font-size: 17px; }
  .top { height: 64px; }
  .top-nav { display: none; }
  .top-logo { width: 78px; }
  .menu-btn { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .menu-btn i { display: block; width: 22px; height: 1px; background: currentColor; transition: translate 0.3s, rotate 0.3s, opacity 0.3s; }
  .menu-btn[aria-expanded='true'] i:nth-of-type(1) { translate: 0 6px; rotate: 45deg; }
  .menu-btn[aria-expanded='true'] i:nth-of-type(2) { opacity: 0; }
  .menu-btn[aria-expanded='true'] i:nth-of-type(3) { translate: 0 -6px; rotate: -45deg; }
  .hero { height: max(460px, 62svh); }
  .hero-in { padding-top: 64px; }
  .t-display { font-size: clamp(42px, 12.5vw, 64px); line-height: 1.08; }
  .hero .t-display em { display: block; }
  .about { padding: 64px var(--pad); }
  .statement { font-size: 28px; line-height: 1.22; }
  .intro { padding: 56px var(--pad) 36px; }
  .sub { font-size: 17px; }
  .arrow { display: none; }
  .brands .track { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; overflow: visible; }
  .brand { width: auto; }
  .brand-logo { --s: 0.7; margin: 12px 0 10px; }
  .brand-text { font-size: 15px; }
  .row, .duo, .news, .list { grid-template-columns: 1fr; }
  .row { padding: 0 0 8px; }
  .row-img, .row-flip .row-img { order: 1; padding: 0; }
  .row-text, .row-flip .row-text { order: 2; padding: 20px 0 32px; border: 0; }
  .duo { padding: 8px var(--pad) 24px; }
  .duo-item { justify-items: start; padding: 0 0 36px; text-align: left; }
  .duo-item + .duo-item { padding-top: 36px; border: 0; border-top: 1px solid var(--line); }
  .duo-item img { margin-bottom: 20px; }
  .gallery { padding-bottom: 72px; }
  .crafts { display: flex; gap: 0; padding: 0 var(--pad) 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .crafts::-webkit-scrollbar { display: none; }
  .craft { flex: 0 0 76vw; padding: 0 16px 0 0; scroll-snap-align: start; }
  .craft + .craft { padding-left: 16px; }
  .craft-text { padding: 0; }
  .feature { position: relative; top: 0; margin: 0 0 40px; }
  .feature-title { left: 20px; right: 20px; bottom: 20px; font-size: 26px; }
  .list { gap: 40px; padding: 0; border: 0; }
  .story, .story + .story + .story { padding: 0; border: 0; }
  .contact { padding: 56px var(--pad) 48px; }
  .contact-body { margin-top: 64px; }
  .foot { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
}
