/* Tall 5 — tallfive.com · v2, simplified */

@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #f5f5f2;
  --surface: #e9e9e4;
  --ink: #171512;
  --muted: #5d5850;
  --accent: #2f6b3f;
  --accent-soft: #d5e3d2;
  --deep: #1e3f28;
  --deep-muted: #b7cbbb;
  --accent-ink: #ffffff;
  --dark-muted: #bdb7ad;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --small: 0.875rem;
  --body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --head: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  --display: clamp(3rem, 1.4rem + 6.2vw, 7.5rem);

  --margin: clamp(1.25rem, 4vw, 4rem);
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --section: clamp(6rem, 12vw, 11rem);
  --max: 84rem;
  --radius: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { max-width: 34em; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 999px; z-index: 20; }
.skip:focus { top: 1rem; }

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

/* buttons & links */
.button { display: inline-flex; align-items: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease); }
.button:active { transform: scale(0.97); }
.button .arrow { display: inline-block; transition: transform 240ms var(--ease); }
.button--light { background: #ffffff; color: var(--ink); }
.button--small { min-height: 2.75rem; padding: 0 1.25rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color 180ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent); color: var(--accent-ink); }
  .button:hover .arrow { transform: translateX(4px); }
  .button--light:hover { background: var(--accent-soft); color: var(--ink); }
  .link:hover { text-decoration-color: currentColor; }
}

/* header */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 4.75rem; }
.wordmark { font-weight: 900; font-size: 1.375rem; letter-spacing: -0.045em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.wordmark i { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 1.05rem; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.button) { text-decoration: none; }
.menu { display: none; }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--gutter); align-items: center; }
.hero h1 { font-size: var(--display); letter-spacing: -0.05em; line-height: 0.95; }
.hero-copy { display: grid; gap: 2rem; justify-items: start; }
.hero-copy p { font-size: var(--lead); line-height: 1.45; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; }
.hero-actions .link { font-weight: 500; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.25em; margin-bottom: -0.25em; }
.lines [data-line] { display: block; }
.hero-media { justify-self: end; width: 100%; display: grid; justify-items: center; gap: 0.9rem; }
.hero-note { font-size: var(--small); color: var(--muted); text-align: center; max-width: 30ch; }

/* phone concept */
.phone { width: min(100%, 21rem, calc((100svh - 12rem) * 9 / 18.5)); min-width: min(100%, 15rem); aspect-ratio: 9 / 18.5; border-radius: 2.6rem; background: var(--ink); padding: 0.55rem; }
.screen { height: 100%; border-radius: 2.1rem; background: #ffffff; color: var(--ink); padding: 1.6rem 1.35rem 1.4rem; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; overflow: hidden; }
.screen-bar { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9375rem; }
.screen-bar strong { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.screen-bar span { color: var(--muted); }

/* breathing tool */
.tool-stage { position: relative; display: grid; place-items: center; }
.tool-orb { width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; transform: scale(0.6); transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1); }
.tool-orb::after { content: ""; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.tool[data-phase="in"] .tool-orb { transform: scale(1); transition-duration: 4s; }
.tool[data-phase="out"] .tool-orb { transform: scale(0.6); transition-duration: 6s; }
.tool[data-phase="done"] .tool-orb { transform: scale(0.8); transition-duration: 1.2s; }
.tool-phase { position: absolute; bottom: 0; inset-inline: 0; text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; max-width: none; }
.tool-foot { display: grid; gap: 0.85rem; }
.tool-dots { display: flex; justify-content: center; gap: 0.5rem; }
.tool-dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #dcd8cf; transition: background-color 240ms ease, transform 240ms var(--ease); }
.tool-dots i.is-done { background: var(--accent); transform: scale(1.15); }
.tool-count { text-align: center; color: var(--muted); font-size: 0.9375rem; min-height: 1.5em; max-width: none; }
.tool-btn { min-height: 3.25rem; border-radius: 999px; background: var(--ink); color: #ffffff; font-weight: 500; transition: transform 140ms var(--ease), background-color 180ms ease; }
.tool-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tool-btn:hover { background: var(--accent); } }
.tool-fallback { display: none; }
.no-js .tool-btn { display: none; }
.no-js .tool-fallback { display: block; text-align: center; font-size: 0.9375rem; }

/* directions */
.directions { padding-block: calc(var(--section) * 0.5) calc(var(--section) * 0.5); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--head); }
.section-head p { font-size: var(--lead); line-height: 1.45; justify-self: end; max-width: 28ch; }
.dir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter) clamp(2rem, 6vw, 6rem); align-items: center; }
.dir + .dir { margin-top: clamp(3rem, 7vw, 6.5rem); }
.dir--flip .dir-media { order: -1; }
.dir-copy { display: grid; gap: 1.4rem; align-content: center; }
.dir-name { font-weight: 700; color: var(--accent); font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.2; }
.dir h3 { font-size: var(--head); }
.dir-copy > p { font-size: var(--lead); line-height: 1.45; max-width: 28ch; }
.ticks { display: grid; gap: 0.65rem; }
.ticks li { display: flex; gap: 0.75rem; }
.ticks li::before { content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232f6b3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.dir-media { border-radius: var(--radius); background: var(--surface); min-height: clamp(26rem, 40vw, 36rem); display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); overflow: clip; position: relative; }
.dir-media--photo { padding: 0; background: #2b2a22; }
.dir-media--photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* book cover concept */
.book-wrap { display: grid; place-items: center; position: relative; width: 100%; height: 100%; }
.book-back { position: absolute; width: min(66%, 16rem); aspect-ratio: 3 / 4.3; border-radius: 6px 14px 14px 6px; background: #c9c4b8; transform: rotate(7deg) translateX(20%); transition: transform 600ms var(--ease); }
.book { position: relative; width: min(70%, 17rem); aspect-ratio: 3 / 4.3; border-radius: 6px 14px 14px 6px; background: var(--accent); color: #fff; padding: 1.75rem 1.5rem 1.5rem 1.9rem; display: grid; grid-template-rows: auto 1fr auto; transform: rotate(-4deg); transition: transform 600ms var(--ease); }
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; border-radius: 6px 0 0 6px; background: rgba(0, 0, 0, 0.2); }
.book small { font-size: 0.875rem; }
.book strong { align-self: end; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.book span { margin-top: 1.1rem; font-size: 0.875rem; display: flex; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .dir:hover .book { transform: rotate(0deg) translateY(-8px); }
  .dir:hover .book-back { transform: rotate(10deg) translateX(26%); }
}

/* AI insight concept */
.insight { width: min(100%, 24rem); display: grid; gap: 0.75rem; }
.bubble { background: #ffffff; border-radius: 22px; padding: 1.2rem 1.35rem; }
.bubble p { font-size: 1rem; line-height: 1.5; max-width: none; }
.bubble .who { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 500; }
.bubble--me { background: var(--ink); color: #ffffff; justify-self: end; max-width: 82%; }
.bubble--me .who { color: var(--dark-muted); }
.chart { display: flex; align-items: end; gap: 0.45rem; height: 6rem; margin-top: 1rem; }
.chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent-soft); height: var(--h); }
.chart i.hi { background: var(--accent); }
.chart-days { display: flex; gap: 0.45rem; margin-top: 0.4rem; font-size: 0.8125rem; color: var(--muted); }
.chart-days span { flex: 1; text-align: center; }

/* approach */
.approach { padding-block: calc(var(--section) * 0.8) var(--section); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.principle { display: grid; gap: 0.75rem; align-content: start; }
.principle b { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.125rem; margin-bottom: 0.5rem; }
.principle h3 { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.2; }

/* services */
.services { background: var(--surface); padding-block: var(--section); }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.25rem, 4vw, 3.25rem); }
.service-list li { display: grid; gap: 0.5rem; align-content: start; }
.service-list h3 { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.2; }

/* contact + footer: one deep-green closing band */
.contact, .footer { background: var(--deep); color: #ffffff; }
.contact { margin-top: 0; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.contact-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.75rem 3rem; }
.contact-card h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.1; }
.contact-card p { color: var(--deep-muted); margin-top: 0.5rem; font-size: var(--lead); line-height: 1.4; }
.contact .button { background: var(--accent-soft); color: var(--deep); }
.contact :focus-visible, .footer :focus-visible { outline-color: #ffffff; }
@media (hover: hover) and (pointer: fine) { .contact .button:hover { background: #ffffff; color: var(--deep); } }

.footer { padding-block: 0 2.5rem; }
.footer .container { padding-top: 2rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2.5rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.footer-brand p { font-size: var(--small); color: var(--deep-muted); }
.footer .wordmark i { background: var(--accent-soft); color: var(--deep); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--small); }
.footer-links a { text-decoration: none; }
.doc + .footer { padding-top: 1.5rem; }

/* legal pages */
.doc { padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.doc .container { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: var(--gutter) clamp(2rem, 6vw, 6rem); align-items: start; }
.doc-head { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.doc-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.doc-head > p { color: var(--muted); }
.doc-head ol { display: grid; gap: 0.35rem; padding-left: 1.2em; font-size: 0.9375rem; color: var(--muted); }
.doc-head ol a { text-decoration: none; color: var(--ink); }
.doc-body { max-width: 44rem; }
.doc-body section + section { margin-top: 3rem; }
.doc-body section { scroll-margin-top: 6.5rem; }
.doc-body h2 { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.9rem; }
.doc-body p + p { margin-top: 0.9em; }
.doc-body p, .doc-body li { max-width: 66ch; }
.doc-body ul { padding-left: 1.2em; margin-top: 0.9em; display: grid; gap: 0.5em; }
.doc-body ul + p { margin-top: 0.9em; }
.doc-body strong { font-weight: 700; }
.entity { background: var(--surface); border-radius: 18px; padding: 1.4rem 1.6rem; margin-block: 1.25rem; }
.entity p + p { margin-top: 0.15em; }

/* 404 */
.lost { padding-block: clamp(4rem, 12vw, 10rem); }
.lost .container { display: grid; gap: 1.75rem; justify-items: start; }
.lost h1 { font-size: var(--display); letter-spacing: -0.05em; }
.lost p { font-size: var(--lead); }

/* mobile menu: full-screen panel under the header */
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; padding: 0 0.6rem 0 1.1rem; border-radius: 999px; background: var(--surface); font-weight: 500; -webkit-tap-highlight-color: transparent; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu-icon { position: relative; width: 1.75rem; height: 1.75rem; }
.menu-icon i { position: absolute; left: 0.4rem; right: 0.4rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform 320ms var(--ease); }
.menu-icon i:first-child { top: calc(50% - 4px); }
.menu-icon i:last-child { top: calc(50% + 2px); }
.menu[open] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu[open] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-panel { position: fixed; inset: 4.75rem 0 0 0; z-index: 9; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 1rem var(--margin) calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.menu:not([open]) .menu-panel { display: none; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.menu-list a { display: block; padding: 0.55rem 0; font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.menu-list a:active, .menu-list a[aria-current="page"] { color: var(--accent); }
.menu-foot { display: grid; gap: 1rem; justify-items: start; }
.menu-foot .button { width: 100%; justify-content: space-between; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-in 260ms var(--ease) both; }
  .menu[open] .menu-list li, .menu[open] .menu-foot { animation: menu-rise 520ms var(--ease) both; }
  .menu[open] .menu-list li:nth-child(2) { animation-delay: 40ms; }
  .menu[open] .menu-list li:nth-child(3) { animation-delay: 80ms; }
  .menu[open] .menu-list li:nth-child(4) { animation-delay: 120ms; }
  .menu[open] .menu-foot { animation-delay: 160ms; }
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* anchored sections land below the sticky header */
section[id] { scroll-margin-top: 4.75rem; }

/* tablet */
@media (max-width: 60em) {
  .hero .container { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .hero-media { justify-self: center; }
  .dir { grid-template-columns: 1fr; }
  .dir--flip .dir-media { order: 0; }
  .principles { grid-template-columns: 1fr; max-width: 40rem; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .container { grid-template-columns: 1fr; }
  .doc-head { position: static; }
}

/* phone */
@media (max-width: 40em) {
  .nav { display: none; }
  .menu { display: block; }
  .hero h1 { font-size: 13vw; }
  .phone { width: min(100%, 17rem); }
  .tool-phase { font-size: 1.25rem; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .dir-media { min-height: 24rem; }
  .service-list { grid-template-columns: 1fr; }
}

/* motion — content stays visible without JavaScript or with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 450ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .dir-media--photo video { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
@media (prefers-reduced-motion: reduce) { .tool-orb, .book, .book-back { transition: none !important; } }
