/* Palm Studio. Brand kit: Olive #3C4233, Forest #2A2F25,
   Oatmeal #F4F3EF, Sand #D9D2C3. Forest drenches the page; sand is the
   accent; oatmeal is the light. Gloock for display, Familjen Grotesk for everything else. */
@font-face { font-family: "Gloock"; src: url(fonts/gloock.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url(fonts/familjen.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --forest: #2A2F25; --olive: #3C4233; --oat: #F4F3EF; --sand: #D9D2C3; --iron: #1d2119;
  --soft: rgba(244, 243, 239, .78); --line: rgba(244, 243, 239, .16);
  --ink-soft: #4a4f42; --ink-line: rgba(42, 47, 37, .18);
  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --text: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: var(--olive) var(--forest); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--forest); color: var(--oat); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--sand); }
::selection { background: var(--sand); color: var(--forest); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(2.4rem, 5.4vw, 4.25rem)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sub { color: var(--soft); max-width: 46ch; margin-top: 14px; font-size: 1.125rem; }

/* Logo: the brand kit's mark as an alpha mask so it takes any colour. */
.logo { display: block; width: 112px; aspect-ratio: 846 / 347; background: var(--oat); -webkit-mask: url(img/logo-mask.png) center / contain no-repeat; mask: url(img/logo-mask.png) center / contain no-repeat; }

/* Top bar: solid forest; a hairline appears only once content scrolls under it. */
.top { position: sticky; top: 0; z-index: 10; background: var(--forest); transition: box-shadow .3s var(--ease); }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(0, 0, 0, .6); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.links { display: flex; gap: 26px; font-size: .975rem; }
.links a { text-decoration: none; color: var(--soft); padding: 10px 0; transition: color .15s; }
.links a:hover { color: var(--oat); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: 600 .8rem/1 var(--text); letter-spacing: .04em; min-width: 44px; min-height: 38px; border: 0; border-radius: 999px; background: none; color: var(--soft); cursor: pointer; transition: background .2s var(--ease), color .2s; }
.lang button[aria-pressed="true"] { background: var(--oat); color: var(--forest); }

/* Hero: the headline, and a palm frond that grows in from the corner. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "intro"; column-gap: clamp(32px, 6vw, 96px); align-content: center; min-height: min(calc(100svh - 72px), 900px); padding-block: clamp(32px, 6vh, 72px) clamp(56px, 9vh, 96px); position: relative; }
.display { font-family: var(--display); letter-spacing: -.025em; line-height: .96; }
.hero h1 { grid-area: title; align-self: end; font-size: clamp(3.4rem, 8.4vw, 6rem); }
.hero h1 span { display: block; }
.hero h1 .l2 { display: flex; align-items: center; gap: .22em; color: var(--sand); }
.avatar { width: .95em; height: .95em; border-radius: 50%; box-shadow: 0 0 0 2px rgba(217, 210, 195, .6); transform: translateY(.04em); }
.hero h1, .intro { position: relative; z-index: 1; }
.frond { position: absolute; right: calc(-1 * var(--gutter)); bottom: 0; height: 100%; max-height: 820px; width: auto; aspect-ratio: 600 / 700; overflow: visible; pointer-events: none; }
.frond path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.frond .rib { stroke: var(--oat); stroke-width: 1.6; opacity: .85; animation-duration: 1.4s; }
.frond .leaflet { stroke: var(--sand); stroke-width: 1.2; opacity: .7; }
.frond-sway { transform-origin: 540px 700px; transform-box: view-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro { grid-area: intro; margin-top: clamp(24px, 4vh, 40px); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--soft); max-width: 36ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--oat); color: var(--forest); font-weight: 600; text-decoration: none; transition: transform .1s ease-out, background .2s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn svg, .round svg, .copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--oat); }


/* What I create: olive bed, a plain typographic list. */
.create { background: var(--olive); padding-block: clamp(80px, 12vw, 150px); }
.services { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; }
.services li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 48px; align-items: baseline; padding-block: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font: 400 clamp(2rem, 4vw, 3.25rem)/1 var(--display); letter-spacing: -.02em; }
.services p { color: var(--soft); max-width: 42ch; font-size: 1.125rem; }

/* How it works: one stem connects the three stages. */
.how { padding-block: clamp(80px, 12vw, 150px); }
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 32px; right: 0; height: 1px; background: linear-gradient(90deg, var(--sand), rgba(217, 210, 195, .1)); }
.node { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); border: 1px solid var(--sand); color: var(--sand); }
.node svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--display); letter-spacing: -.02em; }
.steps .n { font: 600 .85rem/1 var(--text); color: var(--sand); letter-spacing: 0; transform: translateY(-.35em); }
.steps p { color: var(--soft); max-width: 34ch; }

/* Say hello: an arched doorway closes the page. */
.hello { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.door { width: min(1100px, 100%); margin-inline: auto; background: var(--olive); border-radius: 999px 999px 0 0; padding: clamp(110px, 16vw, 210px) var(--gutter) clamp(72px, 9vw, 120px); text-align: center; display: grid; justify-items: center; gap: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.door h2 { font-size: clamp(3.4rem, 10vw, 6rem); }
.door p { color: var(--soft); max-width: 40ch; font-size: 1.125rem; }
.email { font: 400 clamp(1.9rem, 5vw, 3.4rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--oat); text-decoration-color: rgba(217, 210, 195, .5); text-decoration-thickness: 2px; overflow-wrap: anywhere; padding: 6px 0; transition: text-decoration-color .2s; }
.email:hover { text-decoration-color: var(--sand); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--soft); font: 500 .95rem var(--text); cursor: pointer; transition: color .2s, border-color .2s, transform .1s ease-out; }
.copy:hover { color: var(--oat); border-color: rgba(244, 243, 239, .4); }
.copy:active { transform: scale(.97); }
.copy.is-done { color: var(--sand); border-color: var(--sand); }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; }
.foot .logo { width: 128px; }
.foot small { color: var(--soft); font-size: .875rem; }

@media (max-width: 960px) {
  .links { display: none; }
  .hero { min-height: min(calc(100svh - 72px), 760px); padding-top: 20px; }
  .frond { height: 70%; opacity: .32; right: -30%; }
  .services li { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--sand), rgba(217, 210, 195, .1)); }
  .steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 22px; padding-bottom: 40px; }
  .steps li .node { grid-row: span 2; }
  .steps h3 { margin-top: 14px; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .logo { width: 96px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .door { border-radius: 200px 200px 0 0; padding-top: 96px; }
  .foot .wrap { flex-direction: column; justify-content: center; padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .frond path { animation: none; stroke-dashoffset: 0; }
}
@media (prefers-contrast: more) {
  :root { --soft: var(--oat); --line: rgba(244, 243, 239, .5); }
}
