/* ==========================================================
   Built by Matthias — style.css
   Read top to bottom. Each block has a note on what it does.
   ========================================================== */

/* ---- 1. Variables: change a color here, it changes everywhere ---- */
:root {
  --ink: #efe9dc;
  --ink-soft: #b3ad9d;
  --paper: #1b241d;        /* page, a touch darker so cards separate */
  --paper-deep: #2b392f;   /* project cards */
  --card: #243128;         /* steps / pricing cards */
  --line: #41533f;
  --accent: #d08a4a;
  --accent-ink: #1b241d;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1080px;
  --gutter: 20px;
}

/* ---- 2. Reset: strip browser defaults so we start from zero ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* ---- 3. Base type ---- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.fineprint { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- 4. Layout helpers ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter);
  scroll-margin-top: 72px;   /* so the sticky header doesn't cover the heading when you jump to it */
}
.section-head { margin-bottom: 36px; }
.section-head .lede { margin-top: 12px; }

/* ---- 5. Buttons and links ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 6px;
  border: 0;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #e39c5a; }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }   /* the → arrow */
.link-arrow:hover { border-color: var(--accent); }

/* ---- 6. Header ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
}
.brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--accent); }

/* ---- 7. Hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 64px;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 6.4vw, 5rem); }
.hero .lede { margin-top: 28px; }
.hero-down {
  margin-top: 48px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--accent);
}
.hero-down:hover { border-color: var(--accent); 
}

/* ---- 8. Work / project card (the pattern to copy) ---- */
.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.project + .project { margin-top: 32px; }   /* space between cards when there's more than one */
.project-shot {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project-body p + p { margin-top: 12px; }
.project-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.project-body .link-arrow { display: inline-block; margin-top: 20px; }

.checks { margin-top: 18px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.checks li::before {
  content: "\2713";              /* ✓ */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- 8.1 Project shot hover effect ---- */
.project-shot {
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.project-shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Designed cover for a project (used when a screenshot wouldn't thumbnail well) */
.cover {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7% 7% 6%;
  background: linear-gradient(135deg, #efe9dc, #d9d0bd);  
  text-decoration: none;
  color: #1b241d;
}
.cover-head { display: flex; flex-direction: column; gap: 4px; }
.cover-brand { font-family: var(--font-head); font-size: clamp(1.1rem, 3.2vw, 1.7rem); line-height: 1.1; }
.cover-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.cover-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6% 0; }
.cover-photos figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 24px rgba(28, 26, 23, 0.14); }
.cover-photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.cover-photos figcaption {
  position: absolute; left: 8px; bottom: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(28, 26, 23, 0.8); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.cover-foot { font-size: 0.78rem; color: #6b6f62 }

/* Fake browser window around project screenshots */
.project-shot {
  background: #fff;
  padding-top: 28px;
  position: relative;
}
.project-shot::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 14px 0 0 var(--line), 28px 0 0 var(--line);
}

/* ---- 9. How it works (you build the HTML; the CSS is ready) ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps h3 { margin-bottom: 8px; }

/* ---- 10. Pricing (you build the HTML; the CSS is ready) ---- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.price-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.price-card .price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin: 12px 0 8px;
}
.price-card .price small { font-size: 1rem; font-family: var(--font-body); color: var(--ink-soft); }
.price-card p { color: var(--ink-soft); }
#pricing .fineprint { margin-top: 20px; }

/* ---- 10.1 Tilt effect on pricing cards ---- */
.price-grid { perspective: 1000px; }

/* ---- 11. About ---- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.about-photo { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about p:not(.eyebrow) { max-width: 58ch; font-size: 1.1rem; color: var(--ink-soft); }
.about p + p { margin-top: 14px; 
}

/* ---- 12. Contact ---- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info p + p { margin-top: 16px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--accent); }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form .btn { justify-self: start; }
.hidden { display: none; }

/* ---- 13. Footer ---- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer p + p { margin-top: 6px; }

/* ---- 14. Bigger screens: these rules only apply above 760px wide ---- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .project { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.6fr; }
  .about-grid { grid-template-columns: 1fr 1.5fr; }
}
/* ---- 15. Phones: hide the text links, keep the button ---- */
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
}

/* ---- 16. Motion ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.tilt:hover { transition: transform .1s ease; }
.price-grid { perspective: 1000px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tilt { transition: none; }
}

/* ---- 17. Cursor spotlight ---- */
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(208, 138, 74, 0.13), transparent 60%);
}
main, header, footer { position: relative; z-index: 1; }

/* glowing edge on cards as the cursor passes */
.glow { position: relative; }
.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- 18. Paint on the page ---- */
#paint {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* clicks go through to the page; we listen on the window instead */
}
header, main, footer { position: relative; z-index: 1; }
body { cursor: crosshair; }

body { user-select: none; }
.form, .contact-info { user-select: text; }