/* Layout: a real teal notebook photographed on a walnut desk. Pages are photographed paper; work is pasted in as printed photos. Two type families only. */
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nanum Pen Script"; src: url("fonts/nanum-pen-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --teal: #189898;          /* logo teal */
  --teal-deep: #0f6b6b;
  --teal-ink: #0b4f55;      /* pen ink */
  --ink: #23292a;
  --ink-soft: #5f6766;
  --paper: #f3ecdd;
  --desk: #2a1b12;
  --f-sans: "Jost", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --f-hand: "Nanum Pen Script", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); font-family: var(--f-sans); background: var(--desk) url("desk.jpg") center / cover fixed; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--desk); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 75% 70% at 45% 42%, transparent 55%, rgba(0, 0, 0, .35)); }
img { max-width: 100%; display: block; }
a { color: inherit; }
em, i { font-style: normal; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Desk chrome ---------- */
.topbar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); color: #f3ead6; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.brand span { font: 500 13px var(--f-sans); letter-spacing: .42em; color: #f3ead6; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.call-top { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--teal); color: #fff; font: 500 14px var(--f-sans); letter-spacing: .06em; padding: 11px 16px; border-radius: 3px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.call-top svg { width: 16px; height: 16px; }

.stage { position: relative; z-index: 2; display: grid; place-items: center; padding-block: 0 26px; }
.book-wrap { position: relative; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.book-wrap.closed { transform: translateX(-25%); }
.book-wrap.closed.closed-back { transform: translateX(25%); }
.book-mode .book-wrap::before { content: ""; position: absolute; z-index: 0; inset: var(--bt) var(--br) var(--bb) var(--bl);
  background: url("book-open.png") center / 100% 100% no-repeat; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); transition: opacity .5s ease .45s; }
.book-mode .book-wrap.closed::before { opacity: 0; transition: opacity .15s; }
.book { position: relative; z-index: 1; }

.controls { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 28px; }
.controls button { font: 500 12px var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #f1e6cf; background: rgba(20, 12, 7, .45); border: 1px solid rgba(241, 230, 207, .25); border-radius: 3px; padding: 10px 16px; cursor: pointer; backdrop-filter: blur(4px); }
.controls button:hover { background: rgba(20, 12, 7, .7); }
#pg { font: 22px var(--f-hand); color: #f3ead6; min-width: 120px; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

.tabs { transition: opacity .3s ease; }
.closed-back .tabs { opacity: 0; pointer-events: none; }
.tabs { position: absolute; top: 7%; right: calc(var(--br, 0px) * -1 - 28px); display: grid; gap: 4px; z-index: 0; }
.tabs button { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10px var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: #133a3a;
  padding: 16px 8px; border: 0; cursor: pointer; border-radius: 0 4px 4px 0; background: url("paper.jpg") center / 260px, #efe6d3; box-shadow: 1px 1px 2px rgba(0, 0, 0, .5); transition: transform .3s; position: relative; }
.tabs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tint); mix-blend-mode: multiply; }
.tabs button span { position: relative; z-index: 1; }
.tabs button:nth-child(1) { --tint: #efe8d8; } .tabs button:nth-child(2) { --tint: #cfe4e1; } .tabs button:nth-child(3) { --tint: #9fd0cb; } .tabs button:nth-child(4) { --tint: #e6d29a; }
.tabs button:hover, .tabs button[aria-current="true"] { transform: rotate(180deg) translateY(-5px); }

.pen { position: absolute; z-index: 5; pointer-events: none; width: 34%; right: -21%; bottom: -9%; transform: rotate(-148deg);
  filter: drop-shadow(16px 22px 10px rgba(0, 0, 0, .5)) drop-shadow(3px 5px 2px rgba(0, 0, 0, .45)); transition: opacity .6s .5s; }
.closed .pen { opacity: 0; transition: opacity .2s; }

/* ---------- Pages: photographed paper ---------- */
.page { container-type: inline-size; position: relative; color: var(--ink); background: var(--paper) url("paper.jpg") center / cover; overflow: hidden; }
.book-mode .page { container-type: size; }
.book-mode .page.left { background: url("page-left.jpg") center / 100% 100%; }
.book-mode .page.right { background: url("page-right.jpg") center / 100% 100%; }
.page .sheet { position: relative; height: 100%; display: flex; flex-direction: column; padding: 7cqw 8cqw 5.5cqw; font-size: clamp(11px, 2.6cqw, 16px); line-height: 1.5; }
.page.left .sheet { padding-right: 10.5cqw; }
.page.right .sheet { padding-left: 10.5cqw; }
.body { display: flex; flex-direction: column; gap: 2.8cqw; flex: 1; min-height: 0; }
.folio { margin-top: auto; padding-top: 2cqw; font: 1.5em/1 var(--f-hand); color: var(--ink-soft); }
.page.right .folio { text-align: right; }

/* type: Jost for print, Nanum Pen Script for handwriting. No italics. */
h1, h2, h3, p { margin: 0; }
.hand { font-family: var(--f-hand); font-weight: 400; color: var(--teal-ink); line-height: .95; letter-spacing: .005em; }
h1.hand { font-size: 4.4em; }
h2.hand { font-size: 3.6em; }
.hand.big { font-size: 2.3em; }
.hand.mid { font-size: 1.85em; }
.hand.pencil { color: #3d3b38; opacity: .85; }
.label { font: 500 .64em/1.5 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--teal-deep); }
.lead { font-size: 1.08em; line-height: 1.5; color: #2b3132; max-width: 46ch; }
.small { font-size: .82em; color: var(--ink-soft); }
.ink { clip-path: inset(-25% -3% -25% 0); transition: clip-path 1.5s cubic-bezier(.55, .1, .3, 1); }
.ink.pre { clip-path: inset(-25% 100% -25% 0); }
@media (prefers-reduced-motion: reduce) { .ink, .ink.pre { clip-path: none; transition: none; } }

/* printed photos pasted into the book */
.prints { display: flex; flex-direction: column; gap: 3.4cqw; flex: 1; min-height: 0; justify-content: center; }
.prow { display: flex; gap: 3cqw; justify-content: center; align-items: flex-start; }
.print { position: relative; flex: none; background: #fbfaf6; padding: 1.1cqw; transform: rotate(var(--r, 0deg));
  box-shadow: 0 .15cqw .25cqw rgba(0, 0, 0, .22), 0 1.4cqw 2.6cqw -1.2cqw rgba(50, 30, 10, .45); }
.print img { width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #e9e4d9; }
.print::after { content: ""; position: absolute; inset: 1.1cqw; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 38%); }
.print .tape { position: absolute; z-index: 3; top: -2.2cqw; left: 50%; width: 15cqw; transform: translateX(-50%) rotate(var(--tr, -3deg)); opacity: .9; pointer-events: none; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; background: none !important; }
.print a { display: block; width: 100%; height: 100%; }

/* polaroid */
.polaroid { position: relative; background: #fbfaf6; padding: 2.2cqw 2.2cqw 9cqw; transform: rotate(-3deg); width: 46cqw; flex: none;
  box-shadow: 0 .2cqw .3cqw rgba(0, 0, 0, .2), 0 2cqw 3.6cqw -1.6cqw rgba(50, 30, 10, .5); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; filter: saturate(.92) contrast(1.03); }
.polaroid .hand { position: absolute; left: 0; right: 0; bottom: 2.2cqw; text-align: center; font-size: 2em; color: #2f3536; }
.polaroid .clip { position: absolute; z-index: 4; top: -7cqw; right: 12%; width: 7.5cqw; transform: rotate(4deg); filter: drop-shadow(.3cqw .6cqw .4cqw rgba(0, 0, 0, .35)); }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw 3.4cqw; }
.stack-mode .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.num { display: grid; gap: .4cqw; align-content: start; }
.num b { font: 400 3.4em/0.9 var(--f-hand); color: var(--teal-ink); }
.num span { font-size: .78em; line-height: 1.3; color: #3a4142; }
.num a.proof { font: 500 .62em var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid rgba(24, 152, 152, .45); justify-self: start; margin-top: .4cqw; }
.proofshot { margin-top: 1cqw; }

/* brand pages */
.bhead { display: grid; gap: 1cqw; }
.bhead .what { font-size: .98em; line-height: 1.45; color: #2f3536; max-width: 50ch; }
.bstat { display: flex; align-items: baseline; gap: 2cqw; flex-wrap: wrap; }
.bstat b { font: 400 3.2em/1 var(--f-hand); color: var(--teal-ink); }
.bstat span { font-size: .84em; color: #3a4142; }
.bstat a { font: 500 .6em var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid rgba(24, 152, 152, .45); }
.blinks { display: flex; gap: 3cqw; flex-wrap: wrap; font: 500 .62em var(--f-sans); letter-spacing: .2em; text-transform: uppercase; }
.blinks a { text-decoration: none; color: var(--teal-deep); border-bottom: 1px solid rgba(24, 152, 152, .45); padding-bottom: .15em; }

/* services list */
.svc { display: flex; flex-wrap: wrap; gap: 1.4cqw 1.6cqw; }
.svc span { font: 500 .78em var(--f-sans); letter-spacing: .04em; padding: .5em .9em; border: 1px solid rgba(15, 107, 107, .4); border-radius: 2em; color: var(--teal-deep); }

/* call */
.callcard { display: grid; gap: 2cqw; justify-items: start; }
.callnum { font: 400 4.6em/1 var(--f-hand); color: var(--teal-ink); text-decoration: none; }
.callbtn { display: inline-flex; align-items: center; gap: .8em; background: var(--teal); color: #fff; text-decoration: none; font: 500 1em var(--f-sans); letter-spacing: .04em; padding: 1em 1.5em; border-radius: 4px; box-shadow: 0 .8cqw 1.8cqw -0.6cqw rgba(15, 80, 80, .6); }
.callbtn svg { width: 1.1em; height: 1.1em; }
.callbtn:hover { background: var(--teal-deep); }
.alt { display: grid; gap: .8cqw; font-size: .9em; color: #3a4142; }
.alt a { color: var(--teal-deep); }

/* ---------- Covers ---------- */
.page.cover { background: url("cover.png") center / 100% 100% no-repeat transparent; }
.page.cover.back { background-image: url("cover-back.png"); }
.cover .sheet { align-items: center; justify-content: center; text-align: center; gap: 5cqw; }
.foil-mark { width: 30cqw; height: 30cqw; mix-blend-mode: screen; opacity: .92; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .5)); }
.foil { font: 500 1.05em var(--f-sans); letter-spacing: .6em; text-transform: uppercase; padding-left: .6em; color: #d9bd7e; mix-blend-mode: screen; text-shadow: 0 -1px 0 rgba(0, 0, 0, .55); }
.cover .open { all: unset; cursor: pointer; font: 500 .7em var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: #eadbb5; border-bottom: 1px solid rgba(217, 189, 126, .6); padding: .5em 0; }
.back .sheet { justify-content: flex-end; }
.inside { background: url("page-left.jpg") center / 100% 100%; }
.bookplate { margin: auto; width: 74%; padding: 6cqw 5cqw; text-align: center; display: grid; gap: 3cqw; border: 1px solid rgba(15, 107, 107, .55); outline: 1px solid rgba(15, 107, 107, .3); outline-offset: -1.6cqw; }

/* ---------- Stacked mode (phones) ---------- */
.stack-mode .book { display: grid; gap: 26px; width: min(560px, 100%); margin-inline: auto; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
.stack-mode .book-wrap { transform: none; width: 100% !important; height: auto !important; }
.stack-mode .page { box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .9), 0 2px 5px rgba(0, 0, 0, .4); }
.stack-mode .page .sheet { padding: 9cqw 7.5cqw 7cqw; font-size: clamp(14.5px, 3.9cqw, 17px); }
.stack-mode .cover .sheet { min-height: 130cqw; }
.stack-mode .back .sheet { min-height: 70cqw; }
.stack-mode .inside .sheet { min-height: 90cqw; }
.stack-mode .tabs, .stack-mode .pen, .stack-mode .controls { display: none; }
.stack-mode .page { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.stack-mode .page.pre-in { opacity: .001; transform: translateY(26px); }
.stack-mode .prints { gap: 3cqw; }
@media (max-width: 560px) { .brand span { display: none; } .stack-mode .numbers { gap: 5cqw; } }
.call-float { position: fixed; z-index: 45; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; text-decoration: none; font: 500 15px var(--f-sans); padding: 14px 18px; border-radius: 40px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.call-float svg { width: 16px; height: 16px; }
.book-mode .call-float { display: none; }
footer.desk-foot { position: relative; z-index: 3; text-align: center; color: #e7dcc5; font: 400 12px var(--f-sans); letter-spacing: .08em; padding: 10px 16px 26px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
footer.desk-foot a { color: #fff; }
.seo-lines { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: 0 16px 20px; color: #e7dcc5; font: 400 12.5px/1.6 var(--f-sans); text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.seo-lines h2 { font: 500 12.5px var(--f-sans); display: inline; }

.print { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 18, 18, .86); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; font: 500 14px/1 Jost, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .5); padding: 10px 14px; cursor: pointer; }
