/* ==========================================================================
   ReniStudio.com — design system
   Palette note: --accent is reserved for display type (>=19px bold) and
   decorative fills. --accent-ink and --accent-strong are the text-safe
   variants (>=4.5:1 on their backgrounds).
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lobster Two';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lobstertwo-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #FF3D2F;          /* display type + decorative fills */
  --accent-strong: #DE2C1E;   /* solid buttons, white text */
  --accent-hover: #C4241A;
  --accent-ink: #B4241A;      /* small text, links, pills */
  --accent-soft: #FFE6E2;
  --ink: #221C18;
  --muted: #5E534C;
  --cream: #FFFBF6;
  --band: #FDE9DE;
  --card: #FDEBD2;
  --card-line: #F3C79A;
  --hairline: rgba(34, 28, 24, .09);

  --shell: 1180px;
  --gutter: 22px;
  --radius: 20px;
  --header-h: 70px;

  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Lobster Two', 'Brush Script MT', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }

/* --- Type scale ---------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.08;
  letter-spacing: -.005em;
}
h1.display { font-size: clamp(44px, 8.5vw, 86px); line-height: 1.02; }
.display-lg { font-size: clamp(31px, 4.4vw, 52px); }
.display-md { font-size: clamp(28px, 3.6vw, 42px); }
.display-sm { font-size: clamp(20px, 2.1vw, 24px); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lead {
  max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.prose {
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}

.section-intro {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}
.section-intro.center { max-width: 46ch; margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 30px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn-solid {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 26px rgba(222, 44, 30, .26);
}
.btn-solid:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(222, 44, 30, .32);
}

.btn-ghost {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: rgba(255, 61, 47, .22);
  padding: 10px 20px;
  font-size: 15px;
}
.btn-soft:hover {
  background: #FFD8D2;
  border-color: rgba(255, 61, 47, .45);
  color: var(--accent-ink);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center-cta { display: flex; justify-content: center; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 251, 246, .85);
  border-bottom: 1px solid var(--hairline);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .site-header {
    background: rgba(255, 251, 246, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .2px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo span { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav-desktop a:hover { color: var(--accent-ink); }
.nav-desktop a.btn-soft { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(34, 28, 24, .16);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--hairline);
  background: var(--cream);
}
.nav-mobile a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(34, 28, 24, .07);
}
.nav-mobile a:hover { color: var(--accent-ink); }
.nav-mobile .btn { margin-top: 14px; color: #fff; border-bottom: 0; }

.nav-mobile[hidden] { display: none; }

@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 860px) {
  .nav-mobile { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px);
}

.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 32px; }

.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.hero-portrait-shadow {
  position: absolute;
  inset: 26px -18px -22px 30px;
  background: var(--band);
  border-radius: 220px 220px 28px 28px;
}
.hero-portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 220px 220px 24px 24px;
  overflow: hidden;
  background: var(--band);
  box-shadow: 0 26px 60px rgba(34, 28, 24, .14);
}
.hero-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- Waves + bands ------------------------------------------------------- */

.wave { line-height: 0; color: var(--band); }
.wave svg { display: block; width: 100%; height: clamp(48px, 6vw, 96px); }

.band { background: var(--band); }

.section { padding-block: clamp(40px, 6vw, 80px); }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-about { padding-block: clamp(8px, 2vw, 24px); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 80px);
}
.about-grid h2 { margin-bottom: 18px; }
.about-grid > div + div { align-self: end; }

/* --- Service cards ------------------------------------------------------- */

#services > h2 { margin-bottom: clamp(28px, 4vw, 44px); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 940px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid > :last-child { grid-column: auto; }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(34, 28, 24, .12); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 6px 14px rgba(34, 28, 24, .08);
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Portfolio ----------------------------------------------------------- */

.section-portfolio { padding-bottom: clamp(24px, 4vw, 48px); }
.section-portfolio > h2 { margin-bottom: 12px; max-width: 20ch; }
.section-portfolio > .section-intro { margin-bottom: clamp(32px, 5vw, 60px); }

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 64px);
}

.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
/* Alternate sides only once the row is genuinely two columns — stacked,
   the screenshot should always lead. */
@media (min-width: 680px) {
  .project:nth-child(even) .browser { order: 2; }
}

.browser {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 28, 24, .1);
  background: #fff;
  box-shadow: 0 16px 44px rgba(34, 28, 24, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.browser:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(34, 28, 24, .16); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #FBF6F0;
  border-bottom: 1px solid rgba(34, 28, 24, .08);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.browser-bar span:nth-child(1) { background: #FF5F57; }
.browser-bar span:nth-child(2) { background: #FEBC2E; }
.browser-bar span:nth-child(3) { background: #28C840; }

.browser-view { aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.project-copy h3 { margin-bottom: 14px; }
.project-copy .prose { margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 9px;
  padding: 7px 14px;
}

.project-link { margin-top: 18px; font-size: 15px; font-weight: 700; }

.section-portfolio .center-cta { padding-top: clamp(36px, 5vw, 64px); }

/* --- Process ------------------------------------------------------------- */

.section-process {
  margin-top: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 7vw, 92px);
}
.section-process h2 { margin-bottom: clamp(32px, 4.5vw, 56px); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  text-align: center;
  padding: clamp(22px, 2.5vw, 30px) 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 61, 47, .18);
  border-radius: var(--radius);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.step-num {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(34, 28, 24, .42);
}

/* --- Contact ------------------------------------------------------------- */

.section-contact {
  max-width: 660px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px);
}
.section-contact h2 { margin-bottom: 12px; }
.section-contact > .section-intro { margin-bottom: clamp(28px, 4vw, 42px); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field input,
.field textarea {
  padding: 15px 16px;
  border: 1.5px solid rgba(255, 61, 47, .38);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #9A8F87; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(222, 44, 30, .14);
}
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--accent-hover);
  border-width: 2px;
  background: #FFF7F6;
}

/* honeypot — hidden from people, reachable by bots */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.form-status[data-state='ok'] { background: #E7F3EA; color: #1F6B3B; }

button[disabled] { opacity: .6; cursor: progress; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--band); padding-block: 28px; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-bar p { font-size: 14px; color: var(--muted); }
.footer-bar a { font-size: 14px; font-weight: 700; color: var(--muted); }
.footer-bar a:hover { color: var(--accent-ink); }

/* --- Reveal on scroll ---------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- 404 ----------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
}
.notfound .display { margin-bottom: 14px; }
.notfound .prose { margin: 0 auto 30px; }
