/* Helgi Þór, vefhönnun. Dark editorial studio look, one accent (soft violet). */
:root {
  --bg: #0a0a0b;
  --bg2: #121214;
  --fg: #ecebe6;
  --muted: #9b9a95;
  --line: rgba(236, 235, 230, .16);
  --accent: #a99bff;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 3.2vw, 3rem);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.loading { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 600; background: var(--accent); color: var(--bg); padding: .6rem 1rem; font-family: var(--mono); }
.skip:focus { top: 1rem; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.label { display: flex; gap: 1rem; align-items: baseline; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.label b { color: var(--accent); font-weight: 500; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; grid-template-rows: 1fr auto; padding: var(--gutter); transition: transform 1s var(--expo); animation: ldfail .01s 5s forwards; }
.loader.done { transform: translateY(-100%); }
@keyframes ldfail { to { visibility: hidden; } }
.ld-name { align-self: center; font-size: clamp(2.4rem, 9vw, 8rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.04em; line-height: .95; overflow: hidden; padding: .1em 0; }
.ld-name span { display: inline-block; animation: ldup 1s var(--expo) .1s both; }
@keyframes ldup { from { transform: translateY(110%); } }
.ld-count { display: flex; justify-content: space-between; align-items: end; font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.ld-count strong { font-family: var(--display); font-size: clamp(3rem, 10vw, 8rem); color: var(--fg); font-weight: 800; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ld-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Grain */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 250; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(7%, 5%); } 100% { transform: translate(0, 0); } }

/* Cursor */
.cur-dot, .cur-ring { display: none; position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; border-radius: 50%; }
.has-cursor .cur-dot, .has-cursor .cur-ring { display: grid; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.cur-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(236, 235, 230, .6); place-items: center; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); transition: width .35s var(--expo), height .35s var(--expo), margin .35s var(--expo), background .3s, border-color .3s, opacity .3s; }
.cur-ring span { opacity: 0; transition: opacity .2s; }
.cur-ring.is-link { width: 76px; height: 76px; margin: -38px 0 0 -38px; border-color: var(--accent); background: rgba(169, 155, 255, .16); }
.cur-ring.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-hidden, .cur-dot.is-hidden { opacity: 0; }

/* Progress and nav */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 220; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 200; padding: 1.2rem 0; mix-blend-mode: difference; color: #fff; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.25rem; letter-spacing: -.03em; }
.nav ul { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav ul a { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: .3rem 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--expo); }
.nav ul a:hover::after, .nav ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Split text and reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
.wi { display: inline-block; }
.anim .is-split .wi { transform: translateY(115%); transition: transform 1.2s var(--expo); transition-delay: calc(var(--i, 0) * 70ms); }
.anim .is-split.in .wi { transform: none; }
.anim .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--expo), transform 1.2s var(--expo); transition-delay: var(--d, 0s); }
.anim .rv.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem 0 2rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: var(--gx, 75%); top: var(--gy, 30%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(169, 155, 255, .22), transparent 62%); transition: left 1.2s var(--expo), top 1.2s var(--expo); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(3.1rem, 11.4vw, 12.5rem); line-height: .9; letter-spacing: -.045em; max-width: 14ch; }
.hero h1 .acc { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: end; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-bottom p { color: var(--muted); max-width: 44ch; }
.pill { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 155, 255, .7); } 100% { box-shadow: 0 0 0 .7rem rgba(169, 155, 255, 0); } }

/* Marquee */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 1rem 0; user-select: none; }
.marquee:first-of-type { border-top: 1px solid var(--line); }
.mq { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee.out .mq { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .mq { animation-play-state: paused; }
.mq ul { display: flex; flex-shrink: 0; }
.mq li { font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(2.2rem, 6.5vw, 5.5rem); letter-spacing: -.03em; line-height: 1; text-transform: uppercase; display: flex; align-items: center; padding-right: .5em; white-space: nowrap; }
.mq li::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--accent); margin-left: .5em; }
.marquee.out li { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Statement */
section { padding: clamp(5rem, 11vw, 10rem) 0; }
#statement { font-weight: 600; font-variation-settings: "wdth" 100; font-size: clamp(1.8rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; }
#statement .sw { display: inline-block; }
.statement .acc { color: var(--accent); }

/* Work */
h2 { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(2.6rem, 7.4vw, 7.4rem); line-height: .92; letter-spacing: -.045em; margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 14ch; }
.work-list { border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); transition: opacity .5s; }
.work-row { display: grid; grid-template-columns: 4.5rem 1fr minmax(0, 1.1fr) auto; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.6rem) 0; position: relative; }
.work-row .no { font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.work-row .ttl { font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(2.4rem, 6.6vw, 6.8rem); line-height: .95; letter-spacing: -.045em; transition: transform .7s var(--expo), color .4s; }
.work-row .dsc { color: var(--muted); }
.work-row .dsc small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.work-row .ar { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: background .4s, color .4s, transform .6s var(--expo), border-color .4s; }
.work-row:hover .ttl, .work-row:focus-visible .ttl { transform: translateX(1.2rem); color: var(--accent); }
.work-row:hover .ar, .work-row:focus-visible .ar { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(45deg); }
.work-row .inline { grid-column: 1 / -1; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--bg2); }
.work-row .inline img { width: 100%; height: 112%; object-fit: cover; object-position: top; }
.has-peek .work-row .inline { display: none; }
.anim .work-row .inline { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--expo); }
.anim .work-item.in .inline { clip-path: inset(0); }
.anim .work-item .inline img { scale: 1.25; transition: scale 1.6s var(--expo); }
.anim .work-item.in .inline img { scale: 1; }
.has-peek .work-list:hover .work-item:not(:hover), .has-peek .work-list:focus-within .work-item:not(:focus-within) { opacity: .3; }

/* Peek (cursor-following preview, desktop only) */
.peek { display: none; position: fixed; left: 0; top: 0; z-index: 150; width: min(26rem, 32vw); aspect-ratio: 16 / 10; pointer-events: none; border-radius: 12px; overflow: hidden; opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--expo); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: var(--bg2); }
.has-peek .peek { display: block; }
.peek.show { opacity: 1; scale: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s; }
.peek img.on { opacity: 1; }

/* Concepts */
.concepts { background: var(--bg2); }
.concepts .lead { color: var(--muted); max-width: 52ch; margin: -1.5rem 0 3rem; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); align-items: start; }
.cc { display: block; perspective: 1000px; }
.cc-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--expo); transform-style: preserve-3d; }
.cc-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; background: #1b1b1f; position: relative; }
.cc-img img { width: 100%; height: 118%; object-fit: cover; transition: scale 1.2s var(--expo), filter .6s; filter: saturate(.85); }
.cc:hover .cc-img img, .cc:focus-visible .cc-img img { scale: 1.06; filter: saturate(1.1); }
.cc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, .75)); }
.cc-tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: rgba(10, 10, 11, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cc-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1rem; }
.cc-meta h3 { font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1; }
.cc-meta p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.cc-meta .go { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); white-space: nowrap; }
.cc:nth-child(2) { margin-top: 4rem; }
.cc:nth-child(3) { margin-top: 8rem; }

/* Offer */
.offer-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.price { display: flex; align-items: baseline; gap: .2em; font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(5.2rem, 17vw, 17rem); line-height: .82; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price .cur { font-size: .22em; letter-spacing: -.02em; color: var(--accent); }
.price-note { color: var(--muted); margin-top: 1.6rem; max-width: 36ch; }
.terms { border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .2rem; }
.seats { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.seats i { display: inline-flex; gap: .35rem; }
.seats i b { width: .8rem; height: .8rem; border-radius: 50%; background: var(--accent); }

/* Contact */
.contact { padding-bottom: 2rem; overflow: hidden; }
.big { font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(3.6rem, 17.5vw, 18rem); line-height: .85; letter-spacing: -.06em; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; margin-bottom: clamp(3rem, 8vw, 7rem); }
.cta-row p { color: var(--muted); max-width: 36ch; }
.mag { display: inline-grid; place-items: center; text-align: center; width: clamp(9.5rem, 15vw, 13rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; line-height: 1.2; padding: 1.2rem; font-size: 1rem; transition: transform .35s var(--expo), background .3s, color .3s; }
.mag:hover, .mag:focus-visible { background: var(--fg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-content: start; gap: 1.2rem; padding: var(--gutter); align-content: center; }
.nf h1 { font-weight: 800; font-size: clamp(7rem, 32vw, 24rem); line-height: .8; letter-spacing: -.06em; color: var(--accent); }
.nf p { color: var(--muted); font-size: 1.2rem; }
.btn { display: inline-block; justify-self: start; background: var(--accent); color: var(--bg); font-weight: 700; padding: .9rem 1.6rem; border-radius: 99px; }
.btn:hover { background: var(--fg); }

@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
  .work-row { grid-template-columns: 2.4rem 1fr auto; gap: .6rem 1rem; }
  .work-row .ttl, .work-row .dsc { grid-column: 2; }
  .work-row .ar { grid-column: 3; grid-row: 1 / span 2; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc:nth-child(2), .cc:nth-child(3) { margin-top: 0; }
  .cc-img { aspect-ratio: 4 / 3; }
  .offer-grid { grid-template-columns: 1fr; align-items: start; }
  .grain { animation: none; }
  .terms div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 480px) {
  .nav ul { gap: .8rem; }
  .nav ul a { font-size: .7rem; }
  .hero-top span:last-child { display: none; }
  .work-row .inline { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain, .loader { display: none; }
  .mq { width: auto; flex-wrap: wrap; }
  .mq ul[aria-hidden] { display: none; }
  .mq ul { flex-wrap: wrap; }
}
