/* Tim Howes · Golden Hour — portfolio styles */
:root {
  --foam: #FBF3E6;
  --dune: #F4E9D6;
  --ink: #1F2E3A;
  --ink-muted: #3B4A55;
  --label: #6E5236;
  --line: #E2D3BC;
  --sun: #E8772A;
  --ember: #C4561A;
  --sun-glow: #F5A04E;
  --sand: #D8B48A;
  --sky: #8CCBE8;
  --pacific: #4A9FCF;
  --night: #1F2E3A;
  --night-2: #2A3C4A;
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--foam); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pacific); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* placeholders: easy to spot, easy to replace */
.ph { background: #FFF1D2; border-bottom: 2px dashed var(--sand); color: var(--label); font-style: italic; padding: 0 3px; }

/* header */
.site-head { padding-block: 22px; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 52px; height: 52px; }
.brand .word { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ember); display: inline-block; }
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--ember); }
.btn { display: inline-block; background: var(--sun); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px; border: 0; }
.btn:hover { background: var(--sun-glow); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--dune); }

/* stripes */
.stripes { display: flex; flex-direction: column; gap: 6px; width: min(320px, 70%); }
.stripes i { display: block; height: 10px; border-radius: 5px; }
.stripes i:nth-child(1) { background: var(--sun); }
.stripes i:nth-child(2) { background: var(--sand); }
.stripes i:nth-child(3) { background: var(--sky); }

.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }

/* home hero */
.hero { padding-block: 72px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 26px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 92px); line-height: 1.02; color: var(--ember); text-wrap: balance; }
.hero .lede { margin: 26px 0 30px; max-width: 640px; font-size: 20px; color: var(--ink-muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .sticker { width: min(340px, 30vw); height: auto; transform: rotate(6deg); }

/* category jump row */
.jump { padding-block: 0 24px; }
.jump .wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.jump a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--dune); border: 1px solid var(--line); }
.jump a:hover { background: var(--sand); }

/* category sections */
.cat { padding-block: 72px 24px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.cat-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.cat-head p { margin: 0; color: var(--ink-muted); max-width: 520px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.feature { grid-column: 1 / -1; }
.card .thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.card.feature .thumb { aspect-ratio: 21 / 9; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .go { position: absolute; right: 16px; bottom: 16px; background: var(--foam); color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .3s ease; }
.card:hover .thumb .go, .card:focus-visible .thumb .go { opacity: 1; transform: none; }
.card h3 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.card.feature h3 { font-size: 30px; }
.card .meta { margin: 0; font-size: 15px; color: var(--ink-muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--dune); color: var(--label); }

/* image placeholder tile */
.ph-tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(180deg, var(--sky) 0 55%, var(--pacific) 55% 70%, var(--sand) 70%); color: var(--ink); text-align: center; padding: 20px; }
.ph-tile img, .card .thumb .ph-tile img { width: 96px; height: 96px; object-fit: contain; transform: none; }
.ph-tile span { font-size: 14px; font-weight: 600; background: var(--foam); padding: 6px 12px; border-radius: 999px; }

/* immersive intro band */
.story { margin-bottom: 48px; background: var(--night); color: var(--foam); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
.story h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: var(--sun-glow); }
.story p { margin: 0 0 14px; color: #E6E0D4; }
.story ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.story li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid #3A4D5B; }
.story li:last-child { border-bottom: 1px solid #3A4D5B; }
.story li b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--sky); }
.story li strong { display: block; font-weight: 600; color: var(--foam); }
.story li span { font-size: 15px; color: #C9D3DA; }

/* footer */
.site-foot { margin-top: 96px; background: var(--night); color: var(--foam); padding-block: 64px 40px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 22px; }
.site-foot h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; color: var(--sun-glow); }
.site-foot .email { font-size: clamp(20px, 3vw, 30px); font-weight: 600; color: var(--foam); text-decoration: none; border-bottom: 3px solid var(--sun); align-self: flex-start; user-select: all; }
.site-foot .small { font-size: 14px; color: #C9D3DA; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3A4D5B; padding-top: 22px; margin-top: 18px; }
.site-foot .small a { color: #C9D3DA; }

/* project page */
.p-top { padding-block: 48px 32px; }
.back { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-muted); }
.back:hover { color: var(--ember); }
.p-top h1 { margin: 16px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.5vw, 84px); line-height: 1.02; color: var(--ember); text-wrap: balance; }
.p-top .tagline { margin: 0 0 24px; font-size: 21px; color: var(--ink-muted); max-width: 760px; }
.p-hero { border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.p-hero img { width: 100%; max-height: 680px; object-fit: cover; }
.p-hero .ph-tile { height: 420px; }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding-block: 28px; border-block: 1px solid var(--line); }
.summary div { min-width: 0; }
.summary dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.summary dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }

.block { padding-block: 64px 0; }
.block > h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.cs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cs h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.cs p { margin: 0 0 14px; max-width: 600px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.tall img { max-height: 760px; width: auto; margin-inline: auto; }
.gallery img, .gallery video { width: 100%; border-radius: var(--radius); background: var(--dune); border: 1px solid var(--line); }
.gallery figure.tall img { width: auto; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--dune); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--ember); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-muted); }
.wins { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.wins li { position: relative; padding-left: 26px; }
.wins li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 6px; border-radius: 3px; background: var(--sun); box-shadow: 0 8px 0 var(--sky); }
blockquote { margin: 28px 0 0; padding: 22px 26px; border-radius: var(--radius); background: var(--night); color: var(--foam); max-width: 760px; font-size: 19px; }
blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: #C9D3DA; }
.links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.next { margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.next a { text-decoration: none; }
.next .label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.next .title { font-family: var(--display); font-size: clamp(26px, 3.5vw, 40px); color: var(--ember); line-height: 1.1; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .sticker { width: 180px; order: -1; }
  .cat-head, .cs, .story { grid-template-columns: minmax(0, 1fr); }
  .grid, .gallery { grid-template-columns: minmax(0, 1fr); }
  .card.feature .thumb { aspect-ratio: 16 / 10; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .brand .word { font-size: 24px; }
}

/* client logos */
.clients { padding-block: 8px 40px; }
.clients .eyebrow { margin: 0 0 16px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.clients li { background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.clients img { width: 86%; height: 86%; object-fit: contain; }
.p-logos { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.p-logos li { background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; }
.p-logos img { width: 90%; height: 90%; object-fit: contain; }
@media (max-width: 600px) { .clients ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }

/* 360 hero banner */
.hero.hero-360 { position: relative; padding: 0; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--sky); }
.pano { position: absolute; inset: 0; background: var(--sky) center / cover no-repeat; }
.pano canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .8s ease; }
.pano.pano-ready canvas { opacity: 1; }
.pano.pano-grab canvas { cursor: grabbing; }
.hero-360 .wrap { position: relative; z-index: 1; width: 100%; padding-block: 120px 48px; grid-template-columns: minmax(0, 640px) 1fr; align-items: end; pointer-events: none; }
.hero-card { pointer-events: auto; background: var(--foam); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.hero-360 h1 { margin-top: 12px; font-size: clamp(38px, 5vw, 68px); }
.hero-360 .lede { margin: 22px 0 26px; font-size: 19px; }
.hero-360 .sticker { justify-self: end; align-self: start; width: min(260px, 24vw); height: auto; aspect-ratio: 1; pointer-events: auto; transform: none; }
.pano-hint { position: absolute; right: 20px; bottom: 20px; z-index: 1; font-size: 13px; font-weight: 600; letter-spacing: .04em; background: rgba(31,46,58,.72); color: var(--foam); padding: 7px 12px; border-radius: 999px; pointer-events: none; }
@media (max-width: 860px) {
  .hero.hero-360 { min-height: 0; display: block; background: var(--foam); }
  .hero-360 .pano { position: relative; height: 56vh; }
  .hero-360 .wrap { padding-block: 0 32px; margin-top: -72px; grid-template-columns: minmax(0, 1fr); }
  .hero-360 .sticker { display: none; }
  .pano-hint { top: 14px; right: 14px; bottom: auto; }
}

/* results on cards */
.card .result { margin: -4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.card .result::before { content: ""; flex: none; width: 12px; height: 6px; border-radius: 3px; background: var(--sun); box-shadow: 0 8px 0 var(--sky); transform: translateY(-3px); }

/* results strip under the project title */
.keys { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.keys div { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.keys b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; color: var(--ember); }
.keys span { font-size: 14px; color: var(--ink-muted); max-width: 220px; }

/* full-screen 360 experience */
.pano-lock, .pano-lock body { overflow: hidden; }
button.btn { cursor: pointer; font-family: inherit; }
.pano-modal { position: fixed; inset: 0; z-index: 90; background: var(--night); display: flex; flex-direction: column; }
.pano-stage { position: relative; flex: 1; background: #000 center / cover no-repeat; }
.pano-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; opacity: 0; transition: opacity .6s ease; }
.pano-stage.pano-ready canvas { opacity: 1; }
.pano-stage.pano-grab canvas { cursor: grabbing; }
.pano-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); color: var(--foam); font-size: 15px; }
.pano-title { font-weight: 600; margin-right: auto; }
.pano-tip { color: var(--sand); font-size: 14px; }
.pano-bar button { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer; background: var(--foam); color: var(--ink); }
.pano-bar .pano-close { background: var(--sun); }

/* smaller hero card so the 360 shows */
.hero-360 .wrap { grid-template-columns: minmax(0, 560px) 1fr; }
.hero-card { padding: clamp(22px, 3vw, 34px); }
.hero-360 h1 { font-size: clamp(36px, 4.4vw, 60px); }
.hero-360 .lede { font-size: 18px; margin: 18px 0 22px; }

/* leadership band */
.lead { background: var(--night); color: var(--foam); padding-block: clamp(48px, 7vw, 88px); }
.lead .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.lead .eyebrow { color: var(--sand); }
.lead h2 { margin: 8px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; color: var(--sun-glow); }
.lead-head p:not(.eyebrow) { margin: 0 0 22px; font-size: 18px; color: #C9D3DA; max-width: 520px; }
.lead .btn.ghost { color: var(--foam); box-shadow: inset 0 0 0 2px var(--foam); }
.lead .btn.ghost:hover { background: rgba(255,255,255,.08); }
.lead-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-stats div { border-radius: var(--radius); padding: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; }
.lead-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; color: var(--sky); }
.lead-stats span { font-size: 15px; color: #C9D3DA; }
.lead-stats.on-light { margin: 8px 0 28px; }
.lead-stats.on-light div { background: var(--dune); border-color: var(--line); }
.lead-stats.on-light b { color: var(--ember); }
.lead-stats.on-light span { color: var(--ink-muted); }

/* footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 15px; color: #C9D3DA; }
.foot-links a { color: var(--foam); font-weight: 600; }

/* about page */
.about-top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; padding-block: 56px 32px; align-items: start; }
.about-photo { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about h1 { margin: 10px 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; color: var(--ember); }
.about-top p:not(.eyebrow) { font-size: 18px; color: var(--ink-muted); max-width: 640px; margin: 18px 0 0; }
.about-top .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.about-lede { font-size: 18px; color: var(--ink-muted); max-width: 760px; margin: 0 0 8px; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 110px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.jobs b { font-weight: 600; }
.jobs span { color: var(--ink-muted); }
.jobs em { font-style: normal; font-size: 14px; color: var(--label); font-weight: 600; }

@media (max-width: 860px) {
  .lead .wrap, .about-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-photo { max-width: 320px; }
  .jobs li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 480px) { .lead-stats { grid-template-columns: minmax(0, 1fr); } }

/* logo: flat mark, which peels up into the sticker on hover */
.mark { position: relative; display: inline-block; flex: none; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s ease, transform .35s cubic-bezier(.3,1.4,.5,1); }
.mark .m-peel { opacity: 0; transform: scale(.96) rotate(-4deg); }
.brand:hover .m-flat, .brand:focus-visible .m-flat, .hero-360 .mark:hover .m-flat { opacity: 0; }
.brand:hover .m-peel, .brand:focus-visible .m-peel, .hero-360 .mark:hover .m-peel { opacity: 1; transform: scale(1.04) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .mark img { transition: opacity .2s ease; transform: none !important; } }
