:root{
    --ink: #23241f;
    --ink-soft: #4a4c43;
    --paper: #f2efe6;
    --paper-deep: #e8e3d3;
    --sage: #7b8567;
    --sage-deep: #4f5940;
    --blueprint: #2c4257;
    --blueprint-light: #3d5a73;
    --line: #d3ccb8;
    --line-strong: #b9b19a;
    --white: #fffdf8;

    --display: 'Fraunces', serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
  }

  *{ box-sizing: border-box; margin:0; padding:0; }
  html{ scroll-behavior: smooth; }
  body{
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
  }
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; }
  button{ font-family: inherit; cursor:pointer; border:none; background:none; }

  .wrap{ max-width: 1180px; margin:0 auto; padding: 0 32px; }
  @media (max-width: 640px){ .wrap{ padding: 0 20px; } }

  .eyebrow{
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-deep);
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom: 8px;
  }
  .eyebrow::before{
    content:'';
    width: 24px; height:2px;
    background: var(--sage-deep);
    display:inline-block;
  }

  h1,h2,h3{ font-family: var(--display); font-weight:600; letter-spacing:-0.01em; word-break: keep-all; }

  /* ---------- Header ---------- */
  header{
    position: sticky; top:0; z-index: 100;
    background: rgba(242,239,230,0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    height: 96px; /* 2배 커진 로고에 맞춘 헤더 높이 */
  }
  .logo{
    display:flex; align-items:center; gap:14px;
  }
  /* 로고 이미지 2배 확대 및 바탕색 투명화 연출 */
  .logo-img{
    height: 76px; /* 기존 38px에서 2배 확대 */
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply; /* 흰색/밝은 배경 투명화 처리 */
  }
  /* 로고 우측 텍스트 */
  .logo-text{
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.1;
  }
  .logo-text small{
    display:block; 
    font-family: var(--mono); 
    font-weight: 500;
    font-size: 10px; 
    letter-spacing: 0.12em; 
    color: var(--ink-soft);
    margin-top:3px;
  }
  .nav-links{
    display:flex; gap: 40px; font-size: 15px; font-weight:500;
  }
  .nav-links a{ position:relative; padding: 4px 0; color: var(--ink-soft); transition: color .2s; }
  .nav-links a:hover{ color: var(--ink); }
  .nav-links a::after{
    content:''; position:absolute; left:0; bottom:-2px; height:2px; width:0;
    background: var(--sage-deep); transition: width .25s ease;
  }
  .nav-links a:hover::after{ width:100%; }
  .nav-cta{
    font-size: 14px; font-weight:600; padding: 11px 22px;
    border: 1px solid var(--ink); border-radius: 100px;
    transition: background .2s, color .2s;
    white-space:nowrap;
  }
  .nav-cta:hover{ background: var(--ink); color: var(--paper); }

  @media (max-width: 860px){
    .nav-links{ display:none; }
  }

  /* ---------- Hero ---------- */
  .hero-full{
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 460px;
    max-height: 650px;
    overflow: hidden;
    background: var(--ink);
  }
  .hf-track{
    display:flex; width:100%; height:100%;
    transition: transform .7s cubic-bezier(.65,0,.35,1);
  }
  .hf-slide{
    flex:0 0 100%;
    height:100%;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    position:relative;
  }
  .hf-slide::after{
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(35,36,31,0) 55%, rgba(35,36,31,0.55) 100%);
  }
  .hf-edge{
    position:absolute; top:0; bottom:0; width:50%; z-index:2;
    background:transparent;
  }
  .hf-edge-l{ left:0; cursor: w-resize; }
  .hf-edge-r{ right:0; cursor: e-resize; }

  .hf-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:10px;
    z-index:3;
    padding:0 28px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
  }
  @media (max-width:640px){ .hf-overlay{ padding:0 20px; bottom:12px; } }
  .hf-label{
    max-width:58%;
    color:var(--white);
    overflow:hidden;
  }
  .hf-category{
    display:block;
    margin-bottom:2px;
    font-family:var(--mono);
    font-size:12px;
    font-weight:500;
    letter-spacing:.09em;
    color:rgba(255,253,248,.72);
  }
  .hf-title{
    display:block;
    font-family:var(--display);
    font-size:22px;
    font-weight:600;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .hf-project{
    display:block;
    margin-top:4px;
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:.08em;
    color:rgba(255,253,248,.68);
  }
  .hf-controls{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
  .hf-progress{
    width: 130px; height:1px; background: rgba(255,253,248,0.28);
    position:relative; overflow:hidden;
  }
  .hf-progress-bar{
    position:absolute; left:0; top:0; bottom:0; width:0%;
    background: var(--white);
  }
  .hf-progress-bar.animate{ animation: hfFill 4.8s linear; }
  @keyframes hfFill{ from{ width:0%; } to{ width:100%; } }
  .hf-arrow{
    font-family: var(--display); font-size: 22px; color: rgba(255,253,248,0.75);
    line-height:1; padding: 2px 4px; transition: color .2s;
  }
  .hf-arrow:hover{ color: var(--white); }

  /* ---------- Intro copy ---------- */
  .intro{ padding: 110px 0 90px; }
  .intro-wrap{ max-width: 680px; }
  .intro h1{
    font-size: clamp(32px, 4.4vw, 50px);
    line-height: 1.25;
    margin: 18px 0 24px;
    word-break: keep-all;
  }
  .intro h1 span.keep-word{ display: inline-block; }
  .intro h1 em{
    font-style: normal;
    color: var(--sage-deep);
    border-bottom: 2px solid var(--sage);
  }
  .intro p{ font-size: 17px; color: var(--ink-soft); margin-bottom: 34px; max-width: 520px; word-break: keep-all; line-height: 1.65; }
  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
  .hero-tags{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 32px; }
  .hero-tags span{
    font-family: var(--mono); font-size:13px; font-weight:500; color: var(--ink-soft);
    border:1px solid var(--line-strong); padding: 7px 15px; border-radius:100px;
    background: rgba(255,253,248,0.7);
  }

  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 15px; font-weight:600;
    transition: transform .2s ease, background .2s, box-shadow .2s;
  }
  .btn-primary{ background: var(--ink); color: var(--paper); }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35,36,31,0.22); }
  .btn-ghost{ border: 1px solid var(--line-strong); color: var(--ink); }
  .btn-ghost:hover{ border-color: var(--ink); background: var(--white); }

  /* ---------- Section shared ---------- */
  section:not(.hero-full){ padding: 140px 0; }
  .section-head{ max-width: 680px; margin-bottom: 64px; }
  .section-head h2{ font-size: clamp(28px, 3.4vw, 40px); margin-top:16px; margin-bottom: 12px; }
  .section-head p{ color: var(--ink-soft); font-size:16.5px; line-height: 1.6; }

  /* ---------- Services ---------- */
  .services{ background: var(--paper-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .service-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1px;
    background:var(--line-strong);
    border:1px solid var(--line-strong);
    border-radius:14px;
    overflow:hidden;
  }
  @media (max-width: 640px){ .service-grid{ grid-template-columns:1fr; } }
  .service-item{
    min-height:230px;
    background:var(--paper);
    padding:30px 32px;
    transition:background .2s, transform .2s;
  }
  .service-item:hover{ background: var(--white); }
  .service-item svg{ width:32px; height:32px; color: var(--sage-deep); margin-bottom:20px; }
  .service-item h3{ font-size: 18px; font-weight:600; margin-bottom:10px; font-family: var(--body); }
  .service-item p{ font-size:14px; color:var(--ink-soft); line-height:1.7; max-width:430px; }

  .service-cta{
    background: var(--ink);
    color: var(--paper);
    display:flex; flex-direction:column; justify-content:center;
    transition: background .2s;
  }
  .service-cta:hover{ background: #33342c; }
  .service-cta .sc-label{
    font-family: var(--mono); font-size:12px; color: var(--sage); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:10px;
  }
  .service-cta h3{ font-size:19px; font-weight:600; font-family: var(--display); margin-bottom:16px; line-height:1.35; }
  .service-cta .sc-arrow{
    display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600;
  }
  .service-cta .sc-arrow svg{ width:16px; height:16px; margin:0; transition: transform .2s; }
  .service-cta:hover .sc-arrow svg{ transform: translateX(4px); }

  /* ---------- Process ---------- */
  .process-list{ display:flex; flex-direction:column; }
  .process-item{
    display:grid; grid-template-columns: 90px 1fr 1.3fr;
    gap: 28px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    align-items:start;
  }
  .process-item:last-child{ border-bottom: 1px solid var(--line); }
  @media (max-width: 760px){
    .process-item{ grid-template-columns: 50px 1fr; }
    .process-item .process-desc{ grid-column: 2; }
  }
  .process-num{ font-family: var(--mono); font-size: 28px; color: var(--line-strong); font-weight:500; }
  .process-title{ font-size: 20px; font-weight:600; font-family: var(--display); }
  .process-title span{ display:block; font-family: var(--mono); font-size:12px; color: var(--sage-deep); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:6px; font-weight:500; }
  .process-desc{ font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

  /* ---------- Blueprint dialogue ---------- */
  .dialogue{ background: var(--ink); color: var(--paper); }
  .dialogue .section-head p{ color: rgba(242,239,230,0.75); }
  .dialogue .eyebrow{ color: var(--sage); }
  .dialogue .eyebrow::before{ background: var(--sage); }

  .plan-wrap{
    position: relative;
    background: var(--blueprint);
    border-radius: 18px;
    padding: 40px;
    overflow: hidden;
  }
  .plan-wrap::before{
    content:'';
    position:absolute; inset:0;
    background-image:
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
  }
  .plan-svg{ position:relative; width:100%; height:auto; display:block; }
  
  .pin-group{ outline:none; cursor:pointer; }
  .pin{
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 1.5;
    transition: r .2s ease, fill .2s ease;
  }
  .pin-group:hover .pin, .pin-group:focus .pin{ r: 12; }
  .pin-group.active .pin{ fill: var(--sage); stroke: var(--white); stroke-width: 2; }

  .note-panel{
    position: relative;
    margin-top: 26px;
    background: rgba(242,239,230,0.06);
    border: 1px solid rgba(242,239,230,0.18);
    border-radius: 14px;
    padding: 24px 26px;
    min-height: 110px;
  }
  .note-tag{ font-family: var(--mono); font-size:12.5px; font-weight: 500; color: var(--sage); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:12px; }
  .note-line{ font-size: 15px; margin-bottom: 8px; display:flex; gap:12px; }
  .note-line b{ flex-shrink:0; color: var(--sage); font-weight:600; min-width: 82px; }
  .note-hint{ font-family: var(--mono); font-size:12px; color: rgba(242,239,230,0.5); margin-top:16px; }

  /* ---------- Portfolio ---------- */
  .portfolio-tabs{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 40px; }
  .tab{
    font-size: 14px; font-weight:600; padding: 10px 20px;
    border:1px solid var(--line-strong); border-radius: 100px; color: var(--ink-soft);
    transition: all .2s;
  }
  .tab.active, .tab:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .portfolio-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  }
  @media (max-width: 900px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px){ .portfolio-grid{ grid-template-columns: 1fr; } }

  .pf-card{
    border-radius: 14px; overflow:hidden; background: var(--white);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .pf-card:hover{ transform:translateY(-5px); box-shadow:0 18px 34px rgba(35,36,31,.12); }
  .pf-card:hover .pf-thumb{ transform:scale(1.025); }
  .pf-thumb{
    aspect-ratio:4/3;
    position:relative;
    background-size:cover;
    background-position:center;
    transition:transform .45s ease;
  }
  .pf-body{ padding: 20px 22px 24px; }
  .pf-cat{ font-family: var(--mono); font-size:12px; font-weight: 500; color: var(--sage-deep); text-transform:uppercase; letter-spacing:0.06em; }
  .pf-title{ font-size: 17px; font-weight:600; margin-top:6px; font-family: var(--body); }
  .pf-desc{ font-size:14px; color: var(--ink-soft); margin-top:6px; line-height: 1.5; }

  /* ---------- Testimonial ---------- */
  .testimonial-section{ background: var(--paper-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .t-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 900px){ .t-grid{ grid-template-columns: 1fr; } }
  
  .t-card{ 
    background: var(--white); 
    border:1px solid var(--line); 
    border-radius:16px; 
    padding: 36px 32px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .t-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(35,36,31,0.08);
  }
  .t-quote-mark{
    font-family: var(--display);
    font-size: 44px;
    line-height: 1;
    color: var(--sage);
    margin-bottom: 12px;
  }
  .t-quote{ 
    font-family: var(--display); 
    font-size: 19px; 
    line-height:1.6; 
    color: var(--ink);
    font-weight: 500;
    margin-bottom:24px; 
  }
  .t-meta{ 
    font-family: var(--mono); 
    font-size:13.5px; 
    color: var(--sage-deep); 
    font-weight: 600;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  /* ---------- CTA / Contact ---------- */
  .cta{
    background: var(--sage-deep); color: var(--paper);
    border-radius: 22px;
    padding: 72px 54px;
    display:grid; grid-template-columns: 1fr 1fr; gap: 54px;
  }
  @media (max-width: 860px){ .cta{ grid-template-columns:1fr; padding: 44px 30px; } }
  .cta h2{ font-size: clamp(26px,3.2vw,34px); margin-bottom:18px; }
  .cta p{ opacity:.9; font-size:15.5px; margin-bottom:28px; max-width:440px; line-height: 1.6; }
  .cta-info{ display:flex; flex-direction:column; gap:12px; font-family: var(--mono); font-size:14px; }
  .cta-info a{ text-decoration:underline; text-underline-offset:4px; }

  .form-field{ margin-bottom: 18px; }
  .form-field label{ display:block; font-size:13.5px; margin-bottom:8px; opacity:.9; font-weight: 500; }
  .form-field input, .form-field select, .form-field textarea{
    width:100%; padding: 13px 16px; border-radius:8px; border:1px solid rgba(242,239,230,0.3);
    background: rgba(242,239,230,0.08); color: var(--paper); font-family: var(--body); font-size:14.5px;
  }
  .form-field input::placeholder, .form-field textarea::placeholder{ color:rgba(242,239,230,.5); }
  .form-field select option{ background:#d8d8d8; color:#252525; }
  .form-field textarea{ resize:vertical; min-height:90px; }
  .cta form .btn-primary{ background: var(--paper); color: var(--ink); width:100%; justify-content:center; margin-top:8px; }


  /* ---------- Trust stats ---------- */
  .trust-stats{
    padding:56px 0;
    background:var(--ink);
    color:var(--paper);
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.15);
    border-radius:16px;
    overflow:hidden;
  }
  .stat-item{
    min-height:160px;
    padding:28px 24px;
    background:var(--ink);
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .stat-kicker{
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:.1em;
    color:var(--sage);
    margin-bottom:10px;
  }
  .stat-value{
    font-family:var(--display);
    font-size:36px;
    line-height:1;
    margin-bottom:12px;
  }
  .stat-title{
    font-size:15px;
    font-weight:600;
    margin-bottom:6px;
  }
  .stat-desc{
    font-size:13px;
    line-height:1.6;
    color:rgba(242,239,230,.72);
  }
  @media (max-width:900px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .stats-grid{ grid-template-columns:1fr; } }

  /* ---------- Footer ---------- */
  footer{ padding: 52px 0 44px; border-top:1px solid var(--line); }
  .footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; }
  .footer-row p{ font-size:13px; color: var(--ink-soft); font-family: var(--mono); }
  .footer-links{ display:flex; gap:24px; font-size:14px; }

  .reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:none; }
