/* ============================================================
   FILE: app/assets/stylesheets/home.css
   PURPOSE: All styles for the Smart Tinmen homepage.
   Layout: a riveted "spec plate" system. Tin-tinted paper, plates for the
   things that matter (studio facts, projects, team, contact), plain flowing
   text for everything else. Light and dark follow the visitor's OS setting.
   ============================================================ */

:root {
  --paper: #F1F4F3;
  --surface: #FFFFFF;
  --ink: #132321;
  --muted: #556663;
  --line: #D3DCDA;
  --mint: #8EE5D7;
  --mint-wash: #DCF4EF;
  --teal: #0D6B60;
  --rivet: #A9B8B5;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1615; --surface: #14201F; --ink: #E4EEEC; --muted: #92A5A1;
    --line: #253432; --mint-wash: #163430; --teal: #7FDCCB; --rivet: #3E504D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.st-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .st-wrap { padding-inline: 16px; } }

.st-eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }

/* ── Header ── */
.st-header { padding-block: 22px; }
.st-header .st-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.st-brand img { width: 40px; height: 40px; }
.st-brand span { font: 800 18px/1 var(--display); font-stretch: 118%; letter-spacing: 0.01em; text-transform: uppercase; }
.st-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; font-weight: 500; }
.st-nav a { color: var(--muted); text-decoration: none; }
.st-nav a:hover { color: var(--ink); }

/* ── Hero ── */
.st-hero { padding-block: 40px 72px; }
.st-hero .st-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.st-hero h1 { font-weight: 850; font-stretch: 112%; font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.015em; margin-block: 16px 22px; }
.st-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%); padding-inline: 2px; }
@media (prefers-color-scheme: dark) { .st-hero h1 em { color: var(--paper); background: var(--mint); } }
.st-lede { font-size: 18px; color: var(--muted); max-width: 54ch; }
.st-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.st-btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 15px; transition: transform 0.15s; }
.st-btn-primary { background: var(--ink); color: var(--paper); }
.st-btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.st-btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .st-btn { transition: none; } .st-btn:hover { transform: none; } }

/* ── Riveted plate: four rivets via ::before/::after on the plate and on an inner .st-rv ── */
.st-plate { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.st-plate::before, .st-plate::after, .st-plate > .st-rv::before, .st-plate > .st-rv::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rivet); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.18);
}
.st-plate > .st-rv { position: absolute; inset: 0; pointer-events: none; }
.st-plate::before { top: 10px; left: 10px; }
.st-plate::after { top: 10px; right: 10px; }
.st-plate > .st-rv::before { bottom: 10px; left: 10px; }
.st-plate > .st-rv::after { bottom: 10px; right: 10px; }

.st-spec { padding: 30px 30px 26px; }
.st-spec-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1.5px dashed var(--line); }
.st-spec-head img { width: 64px; height: 64px; }
.st-spec-head b { display: block; font: 800 17px/1.15 var(--display); font-stretch: 115%; text-transform: uppercase; }
.st-spec-head small { font: 400 12.5px var(--mono); color: var(--muted); }
.st-spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; padding-top: 18px; }
.st-spec dt { font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
.st-spec dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Sections ── */
.st-block { padding-block: 64px; border-top: 1.5px solid var(--line); scroll-margin-top: 12px; }
.st-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.st-sec-head h2, .st-h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; font-stretch: 112%; line-height: 1.05; }
.st-sec-head p { color: var(--muted); max-width: 60ch; }

/* ── Work ── */
.st-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-project { display: flex; flex-direction: column; overflow: hidden; }
.st-project figure { margin: 0; background: var(--mint-wash); color: var(--ink); aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; border-bottom: 1.5px solid var(--line); }
.st-project figure svg { width: 58%; height: auto; max-height: 82%; }
.st-project svg .fs { fill: var(--surface); }
.st-project svg .fw { fill: var(--mint-wash); stroke: none; }
.st-project svg .fi { fill: currentColor; }
.st-project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.st-where { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal); }
.st-project h3 { font-size: 20px; font-weight: 750; font-stretch: 108%; line-height: 1.15; }
.st-project p { color: var(--muted); font-size: 15px; }
.st-figure-line { margin-top: auto; padding-top: 12px; border-top: 1.5px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; font: 500 13px var(--mono); }

/* ── Services ── */
.st-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.st-svc h3 { font-size: 18px; font-weight: 750; font-stretch: 108%; margin-bottom: 8px; }
.st-svc p { color: var(--muted); font-size: 15px; }
.st-tools { margin-top: 12px; font: 400 12.5px/1.6 var(--mono); color: var(--teal); }

/* ── Process ── */
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.st-step { padding: 24px 22px; border-right: 1.5px solid var(--line); }
.st-step:last-child { border-right: 0; }
.st-step-n { font: 500 12.5px var(--mono); color: var(--teal); }
.st-step h3 { font-size: 19px; font-weight: 750; font-stretch: 108%; margin-block: 6px; }
.st-step p { color: var(--muted); font-size: 15px; }

/* ── Team ── */
.st-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.st-person { padding: 28px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 22px; }
.st-person img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; }
.st-person h3 { font-size: 22px; font-weight: 800; font-stretch: 110%; }
.st-role { font: 500 12.5px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); margin-block: 2px 10px; }
.st-person p { color: var(--muted); font-size: 15px; }
.st-person ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.st-person li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.st-person li span { font: 400 12.5px/1.7 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Contact ── */
.st-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.st-contact ol { margin: 16px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.st-mailbox { padding: 30px; }
.st-addr { display: block; font: 500 clamp(1.1rem, 2.6vw, 1.5rem)/1.3 var(--mono); word-break: break-all; }
.st-mailbox button { margin-top: 16px; font: 600 14px var(--body); padding: 10px 16px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.st-mailbox small { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ── Footer ── */
.st-footer { padding-block: 28px 48px; border-top: 1.5px solid var(--line); color: var(--muted); font-size: 14px; }
.st-footer .st-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-footer img { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .st-hero .st-wrap, .st-sec-head, .st-contact { grid-template-columns: minmax(0, 1fr); }
  .st-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-svc-grid, .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-step:nth-child(2) { border-right: 0; }
  .st-step:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); }
  .st-team-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .st-work-grid, .st-svc-grid, .st-steps { grid-template-columns: minmax(0, 1fr); }
  .st-step { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .st-step:last-child { border-bottom: 0; }
  .st-person { grid-template-columns: minmax(0, 1fr); }
  .st-nav { gap: 14px; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
